Struct collision::primitive::Rectangle [] [src]

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

Rectangle primitive.

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

Methods

impl<S> Rectangle<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<Rectangle<S>> for Primitive2<S>
[src]

[src]

Performs the conversion.

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

[src]

Formats the value using the given formatter. Read more

impl<S: Clone> Clone for Rectangle<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 Rectangle<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 Rectangle<S> where
    S: BaseFloat
[src]

Point type

[src]

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

impl<S> ComputeBound<Aabb2<S>> for Rectangle<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> Discrete<Ray2<S>> for Rectangle<S> where
    S: BaseFloat
[src]

[src]

Ray must be in object space of the rectangle

impl<S> Continuous<Ray2<S>> for Rectangle<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 Rectangle<S> where
    S: Send

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