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
Creates a line segment based on 3D coordinates and a spatial reference.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
x | The X coordinate of start point. | |
y | The Y coordinate of start point. | |
z | The Z coordinate of start point. | |
x | The X coordinate of end point. | |
y | The Y coordinate of end point. | |
z | The Z coordinate of end point. | |
spatial | A spatial reference. |
ArcGISLineSegment(double, double, double, double, ArcGISSpatialReference)
Creates a line segment based on coordinates.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
x | The X coordinate of start point. | |
y | The Y coordinate of start point. | |
x | The X coordinate of end point. | |
y | The Y coordinate of end point. | |
spatial | A spatial reference. |
ArcGISLineSegment(ArcGISPoint, ArcGISPoint)
Creates a line segment based on two points.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
start | The start point. | |
end | The end point. |
ArcGISLineSegment(ArcGISPoint, ArcGISPoint, ArcGISSpatialReference)
Creates a line segment based on two points and a spatial reference.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
start | The start point. | |
end | The end point. | |
spatial | A spatial reference. |
Methods
Signature | Return Type | Summary |
---|---|---|
CreateLineAtAngleFromStartPoint(ArcGISPoint, double, double) | 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
Name | Type | Summary |
---|---|---|
start | The start point of the line segment. | |
angle | The angle of the line relative to the X axis. Units are radians. | |
length | The length of the line. |