[][src]Struct rust_3d::BoxUnaligned3D

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

Not axis aligned Box in 3D space

Fields

center: Point3Dy_dir: Norm3Dz_dir: Norm3Dsize: [Positive; 3]

Implementations

impl BoxUnaligned3D[src]

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

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

pub fn x_dir(&self) -> Norm3D[src]

Trait Implementations

impl Clone for BoxUnaligned3D[src]

impl HasBoundingBox3D for BoxUnaligned3D[src]

impl HasBoundingBox3DMaybe for BoxUnaligned3D[src]

impl IsMovable3D for BoxUnaligned3D[src]

impl IsSATObject for BoxUnaligned3D[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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