Click or drag to resize

SurfaceShapesComputeCircle Method (CentralBody, Cartesian, Double, Double)

Computes boundary positions for a circle on the specified centralBody with the specified center, radius and granularity.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public static SurfaceShapesResult ComputeCircle(
	CentralBody centralBody,
	Cartesian center,
	double radius,
	double granularity
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body to compute the circle on.
center
Type: AGI.Foundation.CoordinatesCartesian
The center of the circle, in the centralBody's fixed reference frame.
radius
Type: SystemDouble
The radius of the circle, in meters.
granularity
Type: SystemDouble
The angular separation, in radians, of positions along the boundary.

Return Value

Type: SurfaceShapesResult
A SurfaceShapesResult object representing the boundary of the circle, in the centralBody's fixed reference frame.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is null.
ArgumentOutOfRangeExceptionradius and granularity must be greater than zero.
Remarks

The computed positions are at the same altitude as the input center.

Lower granularities are more precise but result in more positions.

See Also