Struct ncollide_geometry::shape::Cuboid [] [src]

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

Shape of a box.

Methods

impl<V: Vector> Cuboid<V>
[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<V> Cuboid<V>
[src]

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

Trait Implementations

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Encodable> Encodable for Cuboid<V>
[src]

Serialize a value using an Encoder.

impl<V: Decodable> Decodable for Cuboid<V>
[src]

Deserialize a value using a Decoder.

impl<P: Point, M: Isometry<P>> SupportMap<P, M> for Cuboid<P::Vector>
[src]

Evaluates the support function of the object. A support function is a function associating a vector to the shape point which maximizes their dot product. This does not include the margin of the object. Margins are shape-dependent. Use support_point to sample the complete shape. Read more

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

The AABB of self.

The bounding sphere of self.

The RayCast implementation of self.

The PointQuery implementation of self.

The support mapping of self if applicable.

Whether self uses a supportmapping-based representation.

The composite shape representation of self if applicable.

Whether self uses a composite shape-based representation.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, AABB<P>> for Cuboid<P::Vector>
[src]

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

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

Computes the time of impact, and normal between this transformed shape and a ray.

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

Tests whether a ray intersects this transformed shape.

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

Projects a point on self transformed by m.

Computes the minimal distance between a point and self transformed by m.

Tests if the given point is inside of self transformed by m.