Click or drag to resize

SurfaceShapesComputeSector Method (CentralBody, Cartesian, Double, Double, Double, Double, Double)

Computes boundary positions for a sector on the specified centralBody.

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 ComputeSector(
	CentralBody centralBody,
	Cartesian center,
	double innerRadius,
	double outerRadius,
	double startBearing,
	double endBearing,
	double granularity
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body to compute the sector on.
center
Type: AGI.Foundation.CoordinatesCartesian
The center of the sector, in the centralBody's fixed reference frame.
innerRadius
Type: SystemDouble
The inner radius of the sector, in meters.
outerRadius
Type: SystemDouble
The outer radius of the sector, in meters.
startBearing
Type: SystemDouble
An angle, in radians, measured clockwise from north indicating the start bearing for the sector.
endBearing
Type: SystemDouble
An angle, in radians, measured clockwise from north indicating the end bearing for the sector.
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 sector, in the centralBody's fixed reference frame.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is null.
ArgumentOutOfRangeExceptioninnerRadius, outerRadius, and granularity must be greater than zero.
ArgumentExceptionouterRadius must be greater than innerRadius and endBearing must be greater than startBearing.
Remarks

For most inputs, a sector looks like a slice of a flattened donut. innerRadius and outerRadius are distances from center that define the length of the sector. innerRadius and outerRadius are angles from north that define the angular width of the sector.

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

Lower granularities are more precise but result in more positions.

See Also