LineSegment

A line segment represents a straight line from its start to end point. It is derived from a segment object.

Since

200.1.0

Constructors

Link copied to clipboard
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.

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.

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.

Types

Link copied to clipboard
object Companion

Inherited properties

Link copied to clipboard

The end point of the segment.

Link copied to clipboard

Indicates is a segment is closed, it has a matching start and end point.

Link copied to clipboard

True if the segment is a CubicBezierSegment or EllipticArcSegment, false otherwise. You can add curve segments (CubicBezierSegment, EllipticArcSegment) when using a MultipartBuilder, and get them back from an existing Multipart geometry when Geometry.hasCurves is true.

Link copied to clipboard

The spatial reference for the segment. If the segment does not have a spatial reference null is returned.

Link copied to clipboard

The start point of the segment.

Inherited functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int