Click or drag to resize

Camera.TryCartographicToWindow Method

Converts a Cartographic position to a pixel coordinate relative to the Insight3D control. This method does not throw an exception.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public bool TryCartographicToWindow(
	CentralBody centralBody,
	Cartographic position,
	out Rectangular windowPosition
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The CentralBody of the position.
position
Type: AGI.Foundation.Coordinates.Cartographic
The Cartographic position to convert.
windowPosition
Type: AGI.Foundation.Coordinates.Rectangular
The pixel coordinate of the Cartographic position relative to the Insight3D control. The coordinate can be fractional.

Return Value

Type: Boolean
False if unable to convert the cartographic to a window coordinate.
See Also