Click or drag to resize

PolylinePrimitiveSetSubsetCartographic 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.1.418.0 (24.1.418.0)
Syntax
public void SetSubsetCartographic(
	CentralBody centralBody,
	Cartographic[] positions,
	int index,
	int count
)

Parameters

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