[][src]Struct ncollide2d::shape::Cuboid

pub struct Cuboid<N: Real> { /* fields omitted */ }

Shape of a box.

Methods

impl<N: Real> Cuboid<N>
[src]

Creates a new box from its half-extents. Half-extents are the box half-width along each axis. Each half-extent must be greater than 0.04.

impl<N: Real> Cuboid<N>
[src]

The half-extents of this box. Half-extents are the box half-width along each axis.

Trait Implementations

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Cuboid<N>
[src]

impl<N: Real> HasBoundingVolume<N, BoundingSphere<N>> for Cuboid<N>
[src]

impl<N: Real> PointQuery<N> for Cuboid<N>
[src]

impl<N: Real> RayCast<N> for Cuboid<N>
[src]

Tests whether a ray intersects this transformed shape.

impl<N: Real> ConvexPolyhedron<N> for Cuboid<N>
[src]

impl<N: Real> Shape<N> for Cuboid<N>
[src]

The transform of a specific subshape. Read more

The composite shape representation of self if applicable.

Whether self uses a composite shape-based representation.

impl<N: Real> SupportMap<N> for Cuboid<N>
[src]

Same as self.support_point except that dir is normalized.

impl<N: Real> ToPolyline<N> for Cuboid<N>
[src]

impl<N: Clone + Real> Clone for Cuboid<N>
[src]

Performs copy-assignment from source. Read more

impl<N: PartialEq + Real> PartialEq<Cuboid<N>> for Cuboid<N>
[src]

impl<N: Debug + Real> Debug for Cuboid<N>
[src]

Auto Trait Implementations

impl<N> Send for Cuboid<N>

impl<N> Sync for Cuboid<N>

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Same for T

Should always be Self