Click or drag to resize

ModelPrimitive.SetPositionCartographic Method

For convenience. Sets the Cartographic position of the model. Longitude and latitude are in radians, and altitude is in meters. This also sets Position.

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 SetPositionCartographic(
	CentralBody centralBody,
	Cartographic position
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body the positions are defined on.
position
Type: AGI.Foundation.Coordinates.Cartographic
The new Cartographic position of the model.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is null.
InvalidOperationException The primitive's ReferenceFrame is not equal to centralBody fixed frame.
Remarks

centralBody is used to convert the position to Cartesian.

See Position for a full discussion.

See Also