PointBatchPrimitive.SetCartographic Method (CentralBody, IEnumerable<Cartographic>, IEnumerable<Color>) |
For convenience. Defines the positions and colors of points in a point batch using
Cartographic positions.
Longitude and latitude are in radians, and altitude is in meters.
This is equivalent to
converting each position in
positions to
Cartesian and calling
Set.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic void SetCartographic(
CentralBody centralBody,
IEnumerable<Cartographic> positions,
IEnumerable<Color> colors
)
Public Sub SetCartographic (
centralBody As CentralBody,
positions As IEnumerable(Of Cartographic),
colors As IEnumerable(Of Color)
)
public:
void SetCartographic(
CentralBody^ centralBody,
IEnumerable<Cartographic>^ positions,
IEnumerable<Color>^ colors
)
member SetCartographic :
centralBody : CentralBody *
positions : IEnumerable<Cartographic> *
colors : IEnumerable<Color> -> unit
Parameters
- centralBody
- Type: AGI.Foundation.Celestial.CentralBody
The central body the positions are defined on. - positions
- Type: System.Collections.Generic.IEnumerable<Cartographic>
The new positions for the point batch. - colors
- Type: System.Collections.Generic.IEnumerable<Color>
The new colors for the point batch. There must be one color for each
position in positions.
Exceptions
RemarkscentralBody 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
Set
for a full discussion.
See Also