Skip to content

ArcGISLineSegment

Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISLineSegment
Since: 1.0.0
Inheritance: ArcGISSegment->ArcGISLineSegment

Summary

A line segment represents a straight line from its start to end point. It is derived from a segment object.

Constructors

ArcGISLineSegment(double, double, double, double)

Creates a line segment based on coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStartdouble

The X coordinate of start point.

yStartdouble

The Y coordinate of start point.

xEnddouble

The X coordinate of end point.

yEnddouble

The Y coordinate of end point.

ArcGISLineSegment(double, double, double, double, double, double)

Creates a line segment based on 3D coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStartdouble

The X coordinate of start point.

yStartdouble

The Y coordinate of start point.

zStartdouble

The Z coordinate of start point.

xEnddouble

The X coordinate of end point.

yEnddouble

The Y coordinate of end point.

zEnddouble

The Z coordinate of end point.

Creates a line segment based on 3D coordinates and a spatial reference.

Since 1.0.0

Arguments
NameTypeSummary
xStartdouble

The X coordinate of start point.

yStartdouble

The Y coordinate of start point.

zStartdouble

The Z coordinate of start point.

xEnddouble

The X coordinate of end point.

yEnddouble

The Y coordinate of end point.

zEnddouble

The Z coordinate of end point.

spatialReferenceArcGISSpatialReference

A spatial reference.

Creates a line segment based on coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStartdouble

The X coordinate of start point.

yStartdouble

The Y coordinate of start point.

xEnddouble

The X coordinate of end point.

yEnddouble

The Y coordinate of end point.

spatialReferenceArcGISSpatialReference

A spatial reference.

ArcGISLineSegment(ArcGISPoint, ArcGISPoint)

Creates a line segment based on two points.

Since 1.0.0

Arguments
NameTypeSummary
startPointArcGISPoint

The start point.

endPointArcGISPoint

The end point.

Creates a line segment based on two points and a spatial reference.

Since 1.0.0

Arguments
NameTypeSummary
startPointArcGISPoint

The start point.

endPointArcGISPoint

The end point.

spatialReferenceArcGISSpatialReference

A spatial reference.

Methods

SignatureReturn TypeSummary

CreateLineAtAngleFromStartPoint(ArcGISPoint, double, double)

ArcGISLineSegment

Creates a line segment of the specified length and angle from a given start point.

CreateLineAtAngleFromStartPoint

static ArcGISLineSegment CreateLineAtAngleFromStartPoint(ArcGISPoint startPoint, double angleRadians, double length)

Creates a line segment of the specified length and angle from a given start point.

Since 1.0.0

Arguments
NameTypeSummary
startPointArcGISPoint

The start point of the line segment.

angleRadiansdouble

The angle of the line relative to the X axis. Units are radians.

lengthdouble

The length of the line.

Returns ArcGISLineSegment

An ArcGISLineSegment.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.