Click or drag to resize

PolylinePrimitive.SetSubsetCartographic Method

For convenience. Defines the positions of a polyline using a subset of input Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting the subset of positions to Cartesian and calling SetSubset.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public void SetSubsetCartographic(
	CentralBody centralBody,
	Cartographic[] positions,
	int index,
	int count
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body the positions are defined on.
positions
Type:AGI.Foundation.Coordinates.Cartographic[]
An array of positions. The subset of this array defined by index and count define the new positions for the polyline.
index
Type: System.Int32
A zero-based index into positions that defines the first position copied to the polyline.
count
Type: System.Int32
The number of elements in positions copied to the polyline.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is null.
InvalidOperationException The primitive's ReferenceFrame is not equal to centralBody fixed frame.
Remarks
See SetSubset for a full discussion.
See Also