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