pub struct ExactConstructionKernel;Expand description
An exact-construction kernel that implements [GeometryKernel].
For predicates on plain f64 points, it delegates to the same
filtered → compensated → exact ladder as [FilteredF64Kernel]. The
difference is that it also provides exact construction methods
(construct_segment_intersection) and exact predicates on constructed
points (orientation_2_exact).
This kernel is zero-sized and Copy — the expansion workspace is
stack-allocated inside each method call, not carried as state.
Trait Implementations§
Source§impl Clone for ExactConstructionKernel
impl Clone for ExactConstructionKernel
Source§fn clone(&self) -> ExactConstructionKernel
fn clone(&self) -> ExactConstructionKernel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstructionKernel for ExactConstructionKernel
impl ConstructionKernel for ExactConstructionKernel
Source§fn segment_intersection_2(
&self,
a: Point2,
b: Point2,
c: Point2,
d: Point2,
) -> Result<ExactPoint2, Unsupported>
fn segment_intersection_2( &self, a: Point2, b: Point2, c: Point2, d: Point2, ) -> Result<ExactPoint2, Unsupported>
Exact 2-D segment-segment intersection point. Read more
Source§impl Debug for ExactConstructionKernel
impl Debug for ExactConstructionKernel
Source§impl Default for ExactConstructionKernel
impl Default for ExactConstructionKernel
Source§fn default() -> ExactConstructionKernel
fn default() -> ExactConstructionKernel
Returns the “default value” for a type. Read more
Source§impl GeometryKernel for ExactConstructionKernel
impl GeometryKernel for ExactConstructionKernel
Source§fn orientation_2(&self, a: Point2, b: Point2, c: Point2) -> Orientation
fn orientation_2(&self, a: Point2, b: Point2, c: Point2) -> Orientation
2D orientation: the sign of the turn
a → b → c. Read moreSource§fn orient_3d(&self, a: Point3, b: Point3, c: Point3, d: Point3) -> Sign
fn orient_3d(&self, a: Point3, b: Point3, c: Point3, d: Point3) -> Sign
3D orientation: the sign of
det(b−a, c−a, d−a) (the signed volume of
tetrahedron a b c d). Sign::Positive = d below the oriented
plane a → b → c; Sign::Negative = above; Sign::Zero = coplanar.Source§fn incircle(&self, a: Point2, b: Point2, c: Point2, d: Point2) -> Sign
fn incircle(&self, a: Point2, b: Point2, c: Point2, d: Point2) -> Sign
2D in-circle: the side of
d w.r.t. the oriented circle through
a, b, c. Sign::Positive = inside (when a, b, c are CCW);
Sign::Zero = on; Sign::Negative = outside.Source§fn insphere(
&self,
a: Point3,
b: Point3,
c: Point3,
d: Point3,
e: Point3,
) -> Sign
fn insphere( &self, a: Point3, b: Point3, c: Point3, d: Point3, e: Point3, ) -> Sign
3D in-sphere: the side of
e w.r.t. the oriented sphere through
a, b, c, d. Sign::Positive = inside (when a, b, c, d are
positively oriented); Sign::Zero = on; Sign::Negative = outside.Source§impl PartialEq for ExactConstructionKernel
impl PartialEq for ExactConstructionKernel
Source§fn eq(&self, other: &ExactConstructionKernel) -> bool
fn eq(&self, other: &ExactConstructionKernel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExactConstructionKernel
impl Eq for ExactConstructionKernel
impl StructuralPartialEq for ExactConstructionKernel
Auto Trait Implementations§
impl Freeze for ExactConstructionKernel
impl RefUnwindSafe for ExactConstructionKernel
impl Send for ExactConstructionKernel
impl Sync for ExactConstructionKernel
impl Unpin for ExactConstructionKernel
impl UnsafeUnpin for ExactConstructionKernel
impl UnwindSafe for ExactConstructionKernel
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.