SofaGd2gce Method

Geodetic to geocentric coordinates (given ellipsoid).

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static int Gd2gce(
	double a,
	double f,
	double elong,
	double phi,
	double height,
	double[] xyz
)

Parameters

a  Double
Equatorial radius (meters).
f  Double
Flattening.
elong  Double
Longitude (east positive, radians).
phi  Double
Geodetic latitude (radians).
height  Double
Height above ellipsoid (meters).
xyz  Double
Returned geocentric Cartesian coordinates (meters, length 3).

Return Value

Int32
Status code: 0 = OK, <0 indicates an error condition.

Exceptions

ArgumentNullExceptionThrown if any array parameter is null.
ArgumentExceptionThrown if any array parameter has incorrect length.

Version Information

.NET Standard

Supported in: 2.0

See Also