Expand description
Implementation of the floating point expansions found in Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates by Shewchuk in a more Rusty style. Double precision only.
Functions§
- Computes the determinant of the following matrix
- Returns a positive number if
d
is inside the oriented circle that goes througha
,b
,c
, a negative number if it lies outside, and 0 ifa
,b
,c
,d
are cocircular ora
,b
,c
are collinear. Ifa
,b
,c
are in counterclockwise order, “inside the circle” is the inside. Ifa
,b
,c
are in clockwise order, “inside the circle” is the outside. - Returns a positive number if
e
is inside the oriented sphere that goes througha
,b
,c
,d
, a negative number if it lies outside, and 0 ifa
,b
,c
,d
,e
are cospherical ora
,b
,c
,d
are coplanar. Ifa
,b
,c
,d
are oriented positive, “inside the sphere” is the inside. Ifa
,b
,c
,d
are oriented negative, “inside the sphere” is the outside. - Compares the magnitude of
a
andb
and returns a positive number ifa
’s magnitude is greater, a negative number ifb
’s magnitude is greater, and 0 if their magnitudes equal. - Compares the magnitude of
a
andb
and returns a positive number ifa
’s magnitude is greater, a negative number ifb
’s magnitude is greater, and 0 if their magnitudes equal. - Calculates the orientation of points
a
,b
,c
in a plane. Returns twice the area of the triangle formed bya
,b
, andc
, which is a positive number if they define a left turn, a negative number if they define a right turn, and 0 if they are collinear. - Calculates the orientation of points
a
,b
,c
,d
in a space. Returns 6 times the volume of the tetrahedron formed bya
,b
,c
,d
, which is a positive number ifb
→c
→d
defines a left turn when looked at froma
, a negative number if they define a right turn, and 0 ifa
,b
,c
,d
are coplanar. - Computes the following sum of determinants.
- Computes the following sum of determinants.
- Computes the determinant of the following matrix
- Computes the following sum of determinants.
- Computes the determinant of the following matrix
- Computes the following sum of determinants.
- Computes the determinant of the following matrix
- Computes the following sum of determinants