pub enum FloatKernel {}
Expand description

Offers a fast, precise kernel working with f64 or f32 coordinates.

Performing a delaunay triangulation is often a tradeoff between accuracy and speed: a triangulation working on native floating point-operations will fail in some cases due to rounding errors, while switching to precise floats (like BigRationals from the num crate) reduces performance by several orders of magnitude. This kernel works with adaptive precision: if a calculation is inaccurate, it will increase its precision until the result is accurate enough. Since most calculations are accurate enough in their simplest form, only the overhead of checking the precision is usually encountered. For more information, refer to this link describing the techniques behind the adaptive approach.

Note

When used with f32 coordinates, they will be casted into f64 before the calculation starts. Thus, the performance is the same for both f64 and f32. Only the space requirements for storing the coordinates differ.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns true if pd is contained in the circumference of the triangle spanned by pa, pb, pc. Read more
Returns an EdgeSideInfo yielding on which side of a line a point lies.
Another formulation of side_query, will return true if v0, v1 and v2 are ordered counterclockwise. Read more
Returns true if a point lies on the infinite edge going through edge.from and edge.to. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.