[−][src]Struct mini_collide::Plane
An infinite plane.
Fields
normal: VectorThe normal that liest perpendicular to the plane.
d: f32The distance from the plane to the origin.
Methods
impl Plane[src]
pub fn new(normal: Vector, d: f32) -> Self[src]
Construct a plane given the components of the plan equation.
pub fn from_points(p0: Point, p1: Point, p2: Point) -> Self[src]
Constructs a plane from three points that lie on the plane.
pub fn distance(&self, p: Point) -> f32[src]
Returns the signed distance between the plane and a given point.
pub fn point_closest_to(&self, p: Point) -> Point[src]
Returns the point on the plane that is closest to the given point.
Trait Implementations
impl Intersection<Ray> for Plane[src]
fn intersects(&self, ray: &Ray) -> bool[src]
impl Intersection<Plane> for Ray[src]
fn intersects(&self, plane: &Plane) -> bool[src]
impl Intersection<Sphere> for Plane[src]
fn intersects(&self, sphere: &Sphere) -> bool[src]
impl Intersection<Plane> for Sphere[src]
fn intersects(&self, plane: &Plane) -> bool[src]
Auto Trait Implementations
impl Send for Plane
impl Sync for Plane
impl Unpin for Plane
impl UnwindSafe for Plane
impl RefUnwindSafe for Plane
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,