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 xStart, double yStart, double xEnd, double yEnd)

Creates a line segment based on coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStart

The X coordinate of start point.

yStart

The Y coordinate of start point.

xEnd

The X coordinate of end point.

yEnd

The Y coordinate of end point.

ArcGISLineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd)

Creates a line segment based on 3D coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStart

The X coordinate of start point.

yStart

The Y coordinate of start point.

zStart

The Z coordinate of start point.

xEnd

The X coordinate of end point.

yEnd

The Y coordinate of end point.

zEnd

The Z coordinate of end point.

ArcGISLineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd, ArcGISSpatialReference spatialReference)

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

Since 1.0.0

Arguments
NameTypeSummary
xStart

The X coordinate of start point.

yStart

The Y coordinate of start point.

zStart

The Z coordinate of start point.

xEnd

The X coordinate of end point.

yEnd

The Y coordinate of end point.

zEnd

The Z coordinate of end point.

spatialReference

A spatial reference.

ArcGISLineSegment(double xStart, double yStart, double xEnd, double yEnd, ArcGISSpatialReference spatialReference)

Creates a line segment based on coordinates.

Since 1.0.0

Arguments
NameTypeSummary
xStart

The X coordinate of start point.

yStart

The Y coordinate of start point.

xEnd

The X coordinate of end point.

yEnd

The Y coordinate of end point.

spatialReference

A spatial reference.

ArcGISLineSegment(ArcGISPoint startPoint, ArcGISPoint endPoint)

Creates a line segment based on two points.

Since 1.0.0

Arguments
NameTypeSummary
startPoint

The start point.

endPoint

The end point.

ArcGISLineSegment(ArcGISPoint startPoint, ArcGISPoint endPoint, ArcGISSpatialReference spatialReference)

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

Since 1.0.0

Arguments
NameTypeSummary
startPoint

The start point.

endPoint

The end point.

spatialReference

A spatial reference.

Methods

SignatureReturn TypeSummary

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
startPoint

The start point of the line segment.

angleRadians

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

length

The length of the line.

Returns ArcGISLineSegment

An ArcGISLineSegment.