LineSegment

constructor(xStart: Double, yStart: Double, zStart: Double, xEnd: Double, yEnd: Double, zEnd: Double, spatialReference: SpatialReference? = null)

Creates a line segment based on 3D coordinates and a spatial reference. Use this method to create a line segment representing a straight line between two points.

Since

200.1.0

Parameters

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.


constructor(xStart: Double, yStart: Double, xEnd: Double, yEnd: Double, spatialReference: SpatialReference? = null)

Creates a line segment based on coordinates. Use this method to create a line segment representing a straight line between two points.

Since

200.1.0

Parameters

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.


constructor(startPoint: Point, endPoint: Point, spatialReference: SpatialReference? = null)

Creates a line segment based on two points and a spatial reference. Use this method to create a line segment representing a straight line between two points. The spatial reference parameter is used if the points have a null spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of a Point parameter), they must all be equal.

Since

200.1.0

Parameters

startPoint

The start point.

endPoint

The end point.

spatialReference

A spatial reference.