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_triangles to the positions of their centroids

interfield_triangles 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

Link to this type interfield_centroid_sphere()
interfield_centroid_sphere() :: %{
  required(interfield_triangle_index()) => GEOF.Planet.Geometry.position()
}

Maps interfield_triangles to the positions of their centroids.

Link to this type interfield_triangle_index()
interfield_triangle_index() :: MapSet.t(GEOF.Planet.Field.index())

interfield_triangles are identified by the Fields whose centroids define their vertices.

Link to this section Functions

Link to this function interfield_centroids(divisions)

Computes a new interfield_centroid_sphere, computing its own centroid_sphere. Deprecated outside of testing and examples.

Link to this function interfield_centroids(centroid_sphere, divisions)

Computes a new interfield_centroid_sphere with the provided centroid_sphere.