pub struct RansacPlaneModel {
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
}Expand description
A 3D plane in implicit form a x + b y + c z + d = 0 with the normal
(a, b, c) normalized so that a² + b² + c² = 1.
Fields§
§a: f64x coefficient of the normal.
b: f64y coefficient of the normal.
c: f64z coefficient of the normal.
d: f64Signed offset.
Implementations§
Source§impl RansacPlaneModel
impl RansacPlaneModel
Sourcepub fn from_three_points(
p1: (f64, f64, f64),
p2: (f64, f64, f64),
p3: (f64, f64, f64),
) -> Option<Self>
pub fn from_three_points( p1: (f64, f64, f64), p2: (f64, f64, f64), p3: (f64, f64, f64), ) -> Option<Self>
Builds a plane through three points.
Returns None when the points are collinear (cross product magnitude
within DEGENERATE_EPSILON).
Trait Implementations§
Source§impl Clone for RansacPlaneModel
impl Clone for RansacPlaneModel
Source§fn clone(&self) -> RansacPlaneModel
fn clone(&self) -> RansacPlaneModel
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 moreimpl Copy for RansacPlaneModel
Source§impl Debug for RansacPlaneModel
impl Debug for RansacPlaneModel
Source§impl PartialEq for RansacPlaneModel
impl PartialEq for RansacPlaneModel
impl StructuralPartialEq for RansacPlaneModel
Auto Trait Implementations§
impl Freeze for RansacPlaneModel
impl RefUnwindSafe for RansacPlaneModel
impl Send for RansacPlaneModel
impl Sync for RansacPlaneModel
impl Unpin for RansacPlaneModel
impl UnsafeUnpin for RansacPlaneModel
impl UnwindSafe for RansacPlaneModel
Blanket Implementations§
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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