Namespace: Esri::GameEngine::Geometry
Class: Esri/GameEngine/Geometry/ArcGISImmutablePointCollection
Since: 1.0.0
Summary
Represents an immutable collection of points.
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | Indicates if the immutable point collection contains no points. | ||
No | Yes | The number of points in the collection. | ||
Yes | Yes | The spatial reference for the immutable point collection. |
SpatialReference
ArcGISSpatialReference GetSpatialReference() const
The spatial reference for the immutable point collection.
If the collection does not have a spatial reference null is returned.
Methods
Signature | Return Type | Summary |
---|---|---|
Returns a point at the specified index in the collection. | ||
IndexOf(const ArcGISPoint&) | Retrieves the position of the point in the immutable point collection. The first point that is equal to the supplied point is returned. |
GetPoint
ArcGISPoint GetPoint(size_t index) const
Returns a point at the specified index in the collection.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
index | No | The position in the collection. |
Returns ArcGISPoint
The point at the specified position in the collection.
IndexOf
size_t IndexOf(const ArcGISPoint& point) const
Retrieves the position of the point in the immutable point collection. The first point that is equal to the supplied point is returned.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
point | Yes | The point to find. |
Returns size_t
The position of the point in the collection, -1 otherwise.