Crate geogram_predicates

Source
Expand description

§Geogram Predicates

A crate for rust interoperability with geograms robust predicates; via cxx.

Functions§

det_3d
Computes the sign of the determinant of a 3x3 matrix formed by three 3D points.
det_4d
Computes the sign of the determinant of a 4x4 matrix formed by four 4D points.
dot_3d
Computes the sign of the dot product between two vectors.
geo_sgn
Gets the sign of a value.
in_circle_2d_SOS
Tests whether a point is in the circum-circle of a triangle.
in_sphere_3d_SOS
Tests whether a point is in the circum-sphere of a tetrahedron.
initialize
Needs to be called before using any predicate.
orient_2d
Computes the orientation predicate in 2d.
orient_2dlifted_SOS
Computes the 3d orientation test with lifted points, i.e the regularity test for 2d.
orient_3d
Computes the orientation predicate in 3d.
orient_3d_inexact
Computes the (approximate) orientation predicate in 3d.
orient_3dlifted_SOS
Computes the 4d orientation test with lifted points, i.e the regularity test for 3d.
points_are_colinear_3d
Tests whether three 3D points are colinear.
points_are_identical_2d
Tests whether two 2d points are identical.
points_are_identical_3d
Tests whether two 3d points are identical.
show_stats
Displays some statistics about predicates, including the number of calls, the number of exact arithmetics calls, and the number of Simulation of Simplicity calls.
terminate
Needs to be called at the end of the program.