Struct Plane3
pub struct Plane3 { /* private fields */ }Expand description
A 3D plane represented by normal.dot(point) + offset = 0.
Implementations§
§impl Plane3
impl Plane3
pub fn try_new(normal: Vector<3>, offset: f64) -> Result<Plane3, GeometryError>
pub fn try_new(normal: Vector<3>, offset: f64) -> Result<Plane3, GeometryError>
Creates a validated plane from a finite non-zero normal and finite offset.
§Errors
Returns a GeometryError when the normal or offset is invalid.
pub const fn normal(self) -> Vector<3>
pub const fn normal(self) -> Vector<3>
Returns the plane normal.
Trait Implementations§
impl Copy for Plane3
impl StructuralPartialEq for Plane3
Auto Trait Implementations§
impl Freeze for Plane3
impl RefUnwindSafe for Plane3
impl Send for Plane3
impl Sync for Plane3
impl Unpin for Plane3
impl UnsafeUnpin for Plane3
impl UnwindSafe for Plane3
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