Planet v0.1.1 GEOF.Planet.Geometry
Functions for computing a Planet’s geometry.
Link to this section Summary
Types
position
encodes coordinates on the Sphere in the Geographic Coordinate System as
tuples of the format {:pos, latitude, longitude}
, i.e. {:pos, φ, λ}
, where
-π/2 ≤ φ ≤ π/2 and 0 ≤ λ ≤ 2π
Functions
Computes the centroid of a polygon on the surface of the sphere defined
by a list of position
s
Returns the heading and distance from the first position to the second position
Returns the arclength between two points on the sphere
Calls fun
divisions
-1 times, once for each
point spaced evenly between two points on the sphere, and reduces the
init_acc
into a final value
The apparent accuracy of Erlang’s trigonometry
Link to this section Types
position
encodes coordinates on the Sphere in the Geographic Coordinate System as
tuples of the format {:pos, latitude, longitude}
, i.e. {:pos, φ, λ}
, where
-π/2 ≤ φ ≤ π/2 and 0 ≤ λ ≤ 2π.
Link to this section Functions
Computes the centroid of a polygon on the surface of the sphere defined
by a list of position
s.
Returns the heading and distance from the first position to the second position.
Used only for testing, so documentation is sparse.
Returns the arclength between two points on the sphere.
Calls fun
divisions
-1 times, once for each
point spaced evenly between two points on the sphere, and reduces the
init_acc
into a final value.
The apparent accuracy of Erlang’s trigonometry.