Namespace: Esri::GameEngine::Geometry
Class: Esri/GameEngine/Geometry/ArcGISSegment
Since: 1.0.0
Summary
A segment represents an edge of a multipart geometry, connecting a start to an end point.
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | The end point of the segment. | ||
No | Yes | Indicates is a segment is closed, it has a matching start and end point. | ||
No | Yes | True if the segment is an ArcGISCubicBezierSegment or ArcGISEllipticArcSegment, false otherwise. | ||
Yes | Yes | The spatial reference for the segment. | ||
No | Yes | The start point of the segment. |
IsClosed
bool GetIsClosed() const
Indicates is a segment is closed, it has a matching start and end point.
IsCurve
bool GetIsCurve() const
True if the segment is an ArcGISCubicBezierSegment or ArcGISEllipticArcSegment, false otherwise.
You can add curve segments (ArcGISCubicBezierSegment, ArcGISEllipticArcSegment) when using a ArcGISMultipartBuilder, and get them back from an existing ArcGISMultipart geometry when ArcGISGeometry::HasCurves is true.
SpatialReference
ArcGISSpatialReference GetSpatialReference() const
The spatial reference for the segment.
If the segment does not have a spatial reference null is returned.
Methods
Signature | Return Type | Summary |
---|---|---|
Equals(const ArcGISSegment&) | Tests if this object is equal to a second ArcGISSegment object. |
Equals
bool Equals(const ArcGISSegment& right) const
Tests if this object is equal to a second ArcGISSegment object.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
right | Yes | The second segment to compare for equality. |
Returns bool
True if the comparison succeeds and the objects are equal, false otherwise.