Struct rapier3d::geometry::HalfSpace[][src]

pub struct HalfSpace {
    pub normal: Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>,
}

A half-space delimited by an infinite plane.

Fields

normal: Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>

The halfspace planar boundary outward normal.

Implementations

impl HalfSpace[src]

pub fn aabb(&self, _pos: &Isometry<f32, U3, Unit<Quaternion<f32>>>) -> AABB[src]

Computes the world-space AABB of this half-space.

pub fn local_aabb(&self) -> AABB[src]

Computes the local-space AABB of this half-space.

impl HalfSpace[src]

pub fn bounding_sphere(
    &self,
    pos: &Isometry<f32, U3, Unit<Quaternion<f32>>>
) -> BoundingSphere
[src]

Computes the world-space bounding sphere of this half-space, transformed by pos.

pub fn local_bounding_sphere(&self) -> BoundingSphere[src]

Computes the local-space bounding sphere of this half-space.

impl HalfSpace[src]

pub fn new(
    normal: Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>
) -> HalfSpace
[src]

Builds a new halfspace from its center and its normal.

Trait Implementations

impl Clone for HalfSpace[src]

impl Debug for HalfSpace[src]

impl PartialEq<HalfSpace> for HalfSpace[src]

impl PointQuery for HalfSpace[src]

impl RayCast for HalfSpace[src]

impl Shape for HalfSpace[src]

impl StructuralPartialEq for HalfSpace[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,