pub struct Plane { /* private fields */ }Expand description
A 3D plane defined by a normal vector and a distance from the origin.
Implementations§
Source§impl Plane
Implements methods for Plane.
impl Plane
Implements methods for Plane.
Sourcepub fn from_normal_and_point(normal: Vector3D, point: Vector3D) -> Plane
pub fn from_normal_and_point(normal: Vector3D, point: Vector3D) -> Plane
Sourcepub fn distance_to_point(&self, point: Vector3D) -> f64
pub fn distance_to_point(&self, point: Vector3D) -> f64
Source§impl Plane
impl Plane
pub fn get_normal(&self) -> Vector3D
pub fn get_mut_normal(&mut self) -> &mut Vector3D
pub fn set_normal(&mut self, val: Vector3D) -> &mut Self
pub fn get_distance(&self) -> f64
pub fn get_mut_distance(&mut self) -> &mut f64
pub fn set_distance(&mut self, val: f64) -> &mut Self
Trait Implementations§
impl Copy for Plane
Source§impl PartialOrd for Plane
impl PartialOrd for Plane
impl StructuralPartialEq for Plane
Auto Trait Implementations§
impl Freeze for Plane
impl RefUnwindSafe for Plane
impl Send for Plane
impl Sync for Plane
impl Unpin for Plane
impl UnsafeUnpin for Plane
impl UnwindSafe for Plane
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