ArcGISSegment

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

PropertyTypeNullableReadonlySummary
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 a ArcGISCubicBezierSegment or ArcGISEllipticArcSegment, false otherwise.

Yes
Yes

The spatial reference for the segment.

No
Yes

The start point of the segment.

EndPoint

ArcGISPoint GetEndPoint() const

The end 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 a 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.

StartPoint

ArcGISPoint GetStartPoint() const

The start point of the segment.

Methods

SignatureReturn TypeSummary

Equals(const ArcGISSegment&)

bool

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
NameTypeConstSummary
right
Yes

The second segment to compare for equality.

Returns bool

True if the comparison succeeds and the objects are equal, false otherwise.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.