Planet v0.1.1 GEOF.Planet.Geometry.InterfieldCentroids
Functions for computing the positions of the centroids between each Field on a Sphere. This is used to determine the vertices of a field’s bounding polygon.
Link to this section Summary
Types
Maps interfield_triangle
s to the position
s of their centroids
interfield_triangle
s are identified by the Fields whose centroids define their vertices
Functions
Computes a new interfield_centroid_sphere
, computing its own centroid_sphere
.
Deprecated outside of testing and examples
Computes a new interfield_centroid_sphere
with the provided centroid_sphere
Link to this section Types
interfield_centroid_sphere() :: %{ required(interfield_triangle_index()) => GEOF.Planet.Geometry.position() }
Maps interfield_triangle
s to the position
s of their centroids.
interfield_triangle_index() :: MapSet.t(GEOF.Planet.Field.index())
interfield_triangle
s are identified by the Fields whose centroids define their vertices.
Link to this section Functions
interfield_centroids(GEOF.Planet.Sphere.divisions()) :: interfield_centroid_sphere()
Computes a new interfield_centroid_sphere
, computing its own centroid_sphere
.
Deprecated outside of testing and examples.
interfield_centroids( GEOF.Planet.Geometry.FieldCentroids.centroid_sphere(), GEOF.Planet.Sphere.divisions() ) :: interfield_centroid_sphere()
Computes a new interfield_centroid_sphere
with the provided centroid_sphere
.