pub struct Plane2D { /* private fields */ }Expand description
Concrete 2D plane-like primitive represented by a point and an in-plane unit normal.
In the current trait system, IsPlane serves as the
shared mirror/reference abstraction. For 2D geometry this type corresponds to a line expressed
in point-normal form.
Implementations§
Source§impl Plane2D
impl Plane2D
Sourcepub fn new(point: CoordinateVector2D, normal: UnitVector2D) -> Self
pub fn new(point: CoordinateVector2D, normal: UnitVector2D) -> Self
Creates a new point-normal mirror/reference line.
Trait Implementations§
impl Eq for Plane2D
impl GeometricPrimitive for Plane2D
impl GeometricPrimitive2D for Plane2D
Source§impl IsPlane for Plane2D
impl IsPlane for Plane2D
Source§type Point = CoordinateVector2D
type Point = CoordinateVector2D
Point type used to anchor the plane.
Source§type Normal = UnitVector2D
type Normal = UnitVector2D
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 Plane2D
Auto Trait Implementations§
impl Freeze for Plane2D
impl RefUnwindSafe for Plane2D
impl Send for Plane2D
impl Sync for Plane2D
impl Unpin for Plane2D
impl UnsafeUnpin for Plane2D
impl UnwindSafe for Plane2D
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