Click or drag to resize

SurfaceShapes.ComputeCircle 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: 24.3.420.0 (24.3.420.0)
Syntax
public static SurfaceShapesResult ComputeCircle(
	CentralBody centralBody,
	Cartesian center,
	double radius,
	double granularity
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body to compute the circle on.
center
Type: AGI.Foundation.Coordinates.Cartesian
The center of the circle, in the centralBody's fixed reference frame.
radius
Type: System.Double
The radius of the circle, in meters.
granularity
Type: System.Double
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