LineSegment constructor
- required ArcGISPoint startPoint,
- required ArcGISPoint endPoint,
- SpatialReference? spatialReference,
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 an ArcGISPoint parameter), they must all be equal.
Parameters:
startPoint
— The start point.endPoint
— The end point.spatialReference
— A spatial reference.