LineSegment.fromXYZ constructor
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.
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.