Click or drag to resize

MarkerBatchPrimitiveSetPartialCartographic Method (CentralBody, IEnumerableCartographic, IEnumerableInt32)

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public void SetPartialCartographic(
	CentralBody centralBody,
	IEnumerable<Cartographic> positions,
	IEnumerable<int> indices
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body the positions are defined on.
positions
Type: System.Collections.GenericIEnumerableCartographic
A collection of new positions used to update a subset of positions in the marker batch.
indices
Type: System.Collections.GenericIEnumerableInt32
A collection of zero-based indices that map a corresponding position in positions to a position already in the primitive. For example, if a primitive is first given 5 positions with a call to Set, positions 1 and 3 can be modified with SetPartial by passing in positions containing two new positions and an indices collection with two elements, e.g. [1, 3]. The first position in positions will modify the position at index 1 in the primitive and the second will modify the position at index 3.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is .
InvalidOperationException The primitive's ReferenceFrame is not equal to centralBody fixed frame.
Remarks

centralBody is used to convert positions to Cartesian. The primitive's ReferenceFrame must be equal to the centralBody fixed frame. If the primitive's ReferenceFrame is changed after calling this method, the Cartesian positions stored by the primitive are not modified and are unlikely to represent the original Cartographic positions provided to this method.

See SetPartial(IEnumerableCartesian, IEnumerableInt32) for a full discussion.

See Also