Struct collision::primitive::Square [] [src]

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

Square primitive.

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

Methods

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

[src]

Create a new square primitive from dimension

[src]

Get the dimensions of the Square

[src]

Get the half dimensions of the Square

Trait Implementations

impl<S> From<Square<S>> for Primitive2<S>
[src]

[src]

Performs the conversion.

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Compute the bounding volume

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

[src]

Ray must be in object space of the rectangle

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

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