Struct collision::primitive::Quad [] [src]

pub struct Quad<S> { /* fields omitted */ }

Rectangular plane primitive. Will lie on the xy plane when not transformed.

Have a cached set of corner points to speed up computation.

Methods

impl<S> Quad<S> where
    S: BaseFloat
[src]

[src]

Create a new rectangle primitive from component dimensions

[src]

Create a new rectangle primitive from a vector of component dimensions

[src]

Get the dimensions of the Rectangle

[src]

Get the half dimensions of the Rectangle

Trait Implementations

impl<S> From<Quad<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S: Debug> Debug for Quad<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: Clone> Clone for Quad<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq> PartialEq for Quad<S>
[src]

[src]

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

[src]

This method tests for !=.

impl<S> Primitive for Quad<S> where
    S: BaseFloat
[src]

Point type

[src]

Get the support point on the shape in a given direction. Read more

impl<S> ComputeBound<Aabb3<S>> for Quad<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Sphere<S>> for Quad<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> Discrete<Ray3<S>> for Quad<S> where
    S: BaseFloat
[src]

[src]

Ray must be in object space of the rectangle

impl<S> Continuous<Ray3<S>> for Quad<S> where
    S: BaseFloat
[src]

Result returned by the intersection test

[src]

Ray must be in object space of the rectangle

Auto Trait Implementations

impl<S> Send for Quad<S> where
    S: Send

impl<S> Sync for Quad<S> where
    S: Sync