Skip to main content

to_point

Function to_point 

Source
pub fn to_point<T: Float>(lat: Angle<T>, lon: Angle<T>) -> Vector3<T>
Expand description

Convert a latitude and longitude to a point on the unit sphere.

@pre |lat| <= 90.0 degrees.

  • lat - the latitude.
  • lon - the longitude.

returns a Vector3 of the point on the unit sphere.