Skip to main contentModule ffi
Source - addnod⚠
- Adds a node to a triangulation of the convex hull of nodes
1, ..., k-1, producing a
triangulation of the convex hull of nodes 1, ..., k. - arc_cosine⚠
- Computes the arc cosine function, with argument truncation.
- areas⚠
- Computes the area of a spherical triangle on the unit sphere.
- bdyadd⚠
- Adds a boundary node to a triangulation.
- bnodes⚠
- Returns the boundary nodes of a triangulation.
- circum⚠
- Returns the circumcenter of a spherical triangle.
- covsph⚠
- Connects an exterior node to boundary nodes, covering the sphere.
- crlist⚠
- Returns triangle circumcenters and other information.
- delarc⚠
- Deletes a boundary arc from a triangulation.
- delnb⚠
- Deletes a neighbor from the adjacency list.
- delnod⚠
- Deletes a node from a triangulation.
- edge⚠
- Swaps arcs to force two nodes to be adjacent.
- getnp⚠
- Gets the next nearest node to a given node.
- insert⚠
- Inserts
k as a neighbor of n1. - inside⚠
- Determines if a point is inside a polygonal region.
- intadd⚠
- Adds an interior node to a triangulation.
- intrsc⚠
- Finds the intersection of two great circles.
- jrand⚠
- Returns a random integer between
1 and n. - left⚠
- Determines whether a node is left of a plane through the origin.
- lstptr⚠
- Returns the index of
nb in the adjacency list. - nbcnt⚠
- Returns the number of neighbors of a node.
- nearnd⚠
- Returns the nearest node to a given point.
- optim⚠
- Optimizes the quadrilateral portion of a triangulation.
- r83vec_normalize⚠
- Normalizes each R83 in an R83Vec to have unit norm.
- scoord⚠
- Converts from Cartesian to spherical coordinates (latitude, longitude, radius).
- swap⚠
- Replaces the diagonal arc of a quadrilateral with the other diagonal.
- swptst⚠
- Decides whether to replace a diagonal arc by the other in a quadrilateral.
- trans⚠
- Transform spherical coordinates into Cartesian coordinates
on the unit sphere for input to trmesh.
- trfind⚠
- Locates a point relative to a triangulation.
- trlist⚠
- Convert a triangulation data structure into a triangle list.
- trlist2⚠
- Converts a triangulation data structure to a triangle list.
- trmesh⚠
- Creates a Delaunay triangulation on the unit sphere.