PrimitiveFactory.CreateLatitudeLongitudeGrid Method (CentralBody, Double, Double, Double) |
Creates a lat/long grid on centralBody where the spacing between the set of latitude
and set of longitude lines is latitudeSpacing and
longitudeSpacing, respectively. The granularity is
for determining the smoothness of the line.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic static PolylinePrimitive CreateLatitudeLongitudeGrid(
CentralBody centralBody,
double longitudeSpacing,
double latitudeSpacing,
double granularity
)
Public Shared Function CreateLatitudeLongitudeGrid (
centralBody As CentralBody,
longitudeSpacing As Double,
latitudeSpacing As Double,
granularity As Double
) As PolylinePrimitive
public:
static PolylinePrimitive^ CreateLatitudeLongitudeGrid(
CentralBody^ centralBody,
double longitudeSpacing,
double latitudeSpacing,
double granularity
)
static member CreateLatitudeLongitudeGrid :
centralBody : CentralBody *
longitudeSpacing : float *
latitudeSpacing : float *
granularity : float -> PolylinePrimitive
Parameters
- centralBody
- Type: AGI.Foundation.Celestial.CentralBody
The central body on which to draw the grid. - longitudeSpacing
- Type: System.Double
The amount of space between each longitude line. - latitudeSpacing
- Type: System.Double
The amount of space between each latitude line. - granularity
- Type: System.Double
Used to determine how many points to generate for the line. The closer the granularity is to zero,
the smoother the line will look.
Return Value
Type:
PolylinePrimitive
A
PolylinePrimitive
representing the grid.
See Also