pub struct Plane3D { /* private fields */ }Expand description
Concrete 3D plane implementation defined by a point and unit normal.
Implementations§
Source§impl Plane3D
impl Plane3D
Sourcepub fn new(point: CoordinateVector3D, normal: UnitVector3D) -> Self
pub fn new(point: CoordinateVector3D, normal: UnitVector3D) -> Self
Creates a plane from a point and a unit normal.
The point anchors the plane in space and the normal controls orientation.
Trait Implementations§
impl Eq for Plane3D
impl GeometricPrimitive for Plane3D
impl GeometricPrimitive3D for Plane3D
Source§impl IsPlane for Plane3D
impl IsPlane for Plane3D
Source§type Point = CoordinateVector3D
type Point = CoordinateVector3D
Point type used to anchor the plane.
Source§type Normal = UnitVector3D
type Normal = UnitVector3D
Unit normal type used to orient the plane.
Source§fn point_mut(&mut self) -> &mut Self::Point
fn point_mut(&mut self) -> &mut Self::Point
Returns a mutable reference to a point on the plane.
Source§fn normal_mut(&mut self) -> &mut Self::Normal
fn normal_mut(&mut self) -> &mut Self::Normal
Returns a mutable reference to the plane normal.
impl StructuralPartialEq for Plane3D
Auto Trait Implementations§
impl Freeze for Plane3D
impl RefUnwindSafe for Plane3D
impl Send for Plane3D
impl Sync for Plane3D
impl Unpin for Plane3D
impl UnsafeUnpin for Plane3D
impl UnwindSafe for Plane3D
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