LineSegment class final
A line segment represents a straight line from its start to end point. It is derived from a segment object.
Constructors
- LineSegment({required ArcGISPoint startPoint, required ArcGISPoint endPoint, SpatialReference? spatialReference})
-
Creates a line segment based on two points and a spatial reference.
factory
- LineSegment.fromXY({required double xStart, required double yStart, required double xEnd, required double yEnd, SpatialReference? spatialReference})
-
Creates a line segment based on coordinates.
factory
- LineSegment.fromXYZ({required double xStart, required double yStart, required double zStart, required double xEnd, required double yEnd, required double zEnd, SpatialReference? spatialReference})
-
Creates a line segment based on 3D coordinates and a spatial reference.
factory
- LineSegment.lineAtAngleFromStartPoint({required ArcGISPoint startPoint, required double angleRadians, required double length})
-
Creates a line segment of the specified length and angle from a given
start point.
factory
Properties
- endPoint → ArcGISPoint
-
The end point of the segment.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Indicates is a segment is closed, it has a matching start and end point.
no setterinherited
- isCurve → bool
-
True if the segment is a CubicBezierSegment or EllipticArcSegment,
false otherwise.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spatialReference → SpatialReference?
-
The spatial reference for the segment.
no setterinherited
- startPoint → ArcGISPoint
-
The start point of the segment.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited