[][src]Struct rask_engine::boxes::RBox

pub struct RBox {
    pub pos: Vec2,
    pub v1: Vec2,
    pub v2: Vec2,
}

A rotated box.

Fields

pos: Vec2

The origin.

v1: Vec2

Vector 1.

v2: Vec2

Vector 2: This vector always has to be orthogonal to v1.

Implementations

impl RBox[src]

pub fn new(pos: Vec2, orientation: Vec2, height: f32) -> Self[src]

Creates a new rotated box from a position, an orientation and a width.

Trait Implementations

impl Add<Vec2> for RBox[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Vec2> for RBox[src]

impl Clone for RBox[src]

impl Collidable for RBox[src]

impl Collide<AABox> for RBox[src]

impl Collide<RBox> for Vec2[src]

impl Collide<RBox> for AABox[src]

impl Collide<RBox> for SRT[src]

impl Collide<RBox> for RBox[src]

impl Collide<SRT> for RBox[src]

impl Collide<Vec2> for RBox[src]

impl Copy for RBox[src]

impl Debug for RBox[src]

impl Eq for RBox[src]

impl<'_> From<&'_ SRT> for RBox[src]

impl From<AABox> for RBox[src]

impl PartialEq<RBox> for RBox[src]

impl StructuralEq for RBox[src]

impl StructuralPartialEq for RBox[src]

impl Sub<Vec2> for RBox[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<Vec2> for RBox[src]

Auto Trait Implementations

impl RefUnwindSafe for RBox

impl Send for RBox

impl Sync for RBox

impl Unpin for RBox

impl UnwindSafe for RBox

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

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

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

impl<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.