Class SphericalToCartesian

All Implemented Interfaces:
Serializable, Parameterized, LenientComparable, org.opengis.referencing.operation.MathTransform

final class SphericalToCartesian extends CoordinateSystemTransform implements Serializable
Conversions from spherical coordinates to three-dimensional Cartesian coordinates. This conversion assumes that there is no datum change. Axis order is:
  • Spherical longitude (θ), also noted Ω or λ.
  • Spherical latitude (Ω), also noted θ or φ′ (confusing).
  • Spherical radius (r).
Note: the spherical latitude is related to geodetic latitude φ by Ω(φ) = atan((1-ℯ²)⋅tan(φ)).
This order matches the EllipsoidToCentricTransform axis order. It shall also match the order defined by Normalizer in org.apache.sis.referencing.cs package. Note that this is not the convention used neither in physics (ISO 80000-2:2009) or in mathematics.
Relationship with the convention used in physics The ISO 80000-2 convention is (r,Ω,φ) where φ is like the spherical longitude, and Ω is measured from the Z axis (North pole) instead of from the equator plane. The consequence in the formulas is that sin(Ω) needs to be replaced by cos(Ω) and conversely.
Since:
0.7
Version:
0.7
See Also: