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)
Syntaxpublic static SurfaceShapesResult ComputeCircle(
CentralBody centralBody,
Cartesian center,
double radius,
double granularity
)
Public Shared Function ComputeCircle (
centralBody As CentralBody,
center As Cartesian,
radius As Double,
granularity As Double
) As SurfaceShapesResult
public:
static SurfaceShapesResult^ ComputeCircle(
CentralBody^ centralBody,
Cartesian center,
double radius,
double granularity
)
static member ComputeCircle :
centralBody : CentralBody *
center : Cartesian *
radius : float *
granularity : float -> SurfaceShapesResult
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:
SurfaceShapesResultA
SurfaceShapesResult object representing the boundary of the circle, in the
centralBody's fixed reference frame.
Exceptions
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