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
Source§fn eq(&self, other: &RansacPlaneModel) -> bool
fn eq(&self, other: &RansacPlaneModel) -> bool
Tests for
self and other values to be equal, and is used by ==.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