Convert position/velocity from Cartesian to spherical coordinates.
Namespace: ASCOM.Astrometry.SOFAAssembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntaxpublic void Pv2s(
double[,] pv,
ref double theta,
ref double phi,
ref double r,
ref double td,
ref double pd,
ref double rd
)
Public Sub Pv2s (
pv As Double(,),
ByRef theta As Double,
ByRef phi As Double,
ByRef r As Double,
ByRef td As Double,
ByRef pd As Double,
ByRef rd As Double
)
public:
virtual void Pv2s(
array<double,2>^ pv,
double% theta,
double% phi,
double% r,
double% td,
double% pd,
double% rd
) sealed
Parameters
- pv Double
- pv-vector
- theta Double
- Longitude angle (radians)
- phi Double
- Latitude angle (radians)
- r Double
- Radial distance
- td Double
- Rate of change of theta
- pd Double
- Rate of change of phi
- rd Double
- Rate of change of r
Remarks
Note
- If the position part of pv is null, theta, phi, td and pd are indeterminate. This Is handled by extrapolating the position
through unit time by using the velocity part of pv. This moves the origin without changing the direction of the velocity component.
If the position And velocity components of pv are both null, zeroes are returned for all six results.
- If the position is a pole, theta, td and pd are indeterminate. In such cases zeroes are returned for all three.
See Also