pub struct SimplePlane {
pub origin: Vector3,
pub normal: Vector3,
}Fields§
§origin: Vector3§normal: Vector3Implementations§
Source§impl SimplePlane
impl SimplePlane
pub fn new(origin: Vector3, normal2: Vector3) -> Self
pub fn from_mxb(mx: f64, my: f64, c: f64) -> Self
pub fn regress(points: &Vec<Vector3>) -> (SimplePlane, f64)
pub fn point_intersects(&self, other: Vector3) -> bool
pub fn line_intersects(&self, other: Line) -> Result<Vector3, String>
pub fn segment_intersects(&self, other: LineSegment) -> Result<Vector3, String>
Trait Implementations§
Source§impl Clone for SimplePlane
impl Clone for SimplePlane
Source§fn clone(&self) -> SimplePlane
fn clone(&self) -> SimplePlane
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePlane
impl Debug for SimplePlane
Source§impl PartialEq for SimplePlane
impl PartialEq for SimplePlane
impl Copy for SimplePlane
impl StructuralPartialEq for SimplePlane
Auto Trait Implementations§
impl Freeze for SimplePlane
impl RefUnwindSafe for SimplePlane
impl Send for SimplePlane
impl Sync for SimplePlane
impl Unpin for SimplePlane
impl UnwindSafe for SimplePlane
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