[][src]Struct rust_3d::BoxUnaligned3D

pub struct BoxUnaligned3D {
    pub center: Point3D,
    pub y_dir: [f64; 3],
    pub z_dir: [f64; 3],
    pub size: [f64; 3],
}

Not axis aligned Box in 3D space

Fields

center: Point3Dy_dir: [f64; 3]z_dir: [f64; 3]size: [f64; 3]

Methods

impl BoxUnaligned3D[src]

pub fn new_from_bb(bb: &BoundingBox3D) -> Self[src]

pub fn new_from_z_rotation<P>(center: &P, size: [f64; 3], rotation: f64) -> Self where
    P: Is3D
[src]

pub fn x_dir(&self) -> [f64; 3][src]

Trait Implementations

impl HasBoundingBox3D for BoxUnaligned3D[src]

impl HasBoundingBox3DMaybe for BoxUnaligned3D[src]

impl IsMovable3D for BoxUnaligned3D[src]

impl IsSATObject for BoxUnaligned3D[src]

impl Clone for BoxUnaligned3D[src]

Auto Trait Implementations

Blanket Implementations

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

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

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 = !

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.

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

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

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