[][src]Struct ncollide_geometry::shape::Plane

pub struct Plane<V> { /* fields omitted */ }

SupportMap description of a plane.

Methods

impl<V: Vector> Plane<V>[src]

pub fn new(normal: Unit<V>) -> Plane<V>[src]

Builds a new plane from its center and its normal.

pub fn normal(&self) -> &Unit<V>[src]

The plane normal.

Trait Implementations

impl<P: Point, M: Isometry<P>> Shape<P, M> for Plane<P::Vector>[src]

fn as_support_map(&self) -> Option<&dyn SupportMap<P, M>>[src]

The support mapping of self if applicable.

fn as_composite_shape(&self) -> Option<&dyn CompositeShape<P, M>>[src]

The composite shape representation of self if applicable.

fn is_support_map(&self) -> bool[src]

Whether self uses a supportmapping-based representation.

fn is_composite_shape(&self) -> bool[src]

Whether self uses a composite shape-based representation.

impl<P, M> HasBoundingVolume<M, AABB<P>> for Plane<P::Vector> where
    P: Point
[src]

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, BoundingSphere<P>> for Plane<P::Vector>[src]

impl<P: Point, M: Isometry<P>> RayCast<P, M> for Plane<P::Vector>[src]

fn toi_with_ray(&self, m: &M, ray: &Ray<P>, solid: bool) -> Option<P::Real>[src]

Computes the time of impact between this transform shape and a ray.

fn toi_and_normal_and_uv_with_ray(
    &self,
    m: &M,
    ray: &Ray<P>,
    solid: bool
) -> Option<RayIntersection<P::Vector>>
[src]

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

fn intersects_ray(&self, m: &M, ray: &Ray<P>) -> bool[src]

Tests whether a ray intersects this transformed shape.

impl<P: Point, M: Isometry<P>> PointQuery<P, M> for Plane<P::Vector>[src]

impl<V: PartialEq> PartialEq<Plane<V>> for Plane<V>[src]

impl<V: Clone> Clone for Plane<V>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V: Debug> Debug for Plane<V>[src]

Auto Trait Implementations

impl<V> Send for Plane<V> where
    V: Send

impl<V> Sync for Plane<V> where
    V: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self