[−][src]Struct mgf::OBB
An arbitrarily oriented bounding box.
Fields
c: Point3<f32>
q: Quaternion<f32>
r: Vector3<f32>
Methods
impl OBB
[src]
Trait Implementations
impl BoundedBy<AABB> for OBB
[src]
impl BoundedBy<Sphere> for OBB
[src]
impl<P: Particle> Intersects<OBB> for P
[src]
fn intersection(&self, o: &OBB) -> Option<Intersection>
[src]
impl Shape for OBB
[src]
fn center(&self) -> Point3<f32>
[src]
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn set_pos(&mut self, p: Point3<f32>)
[src]
Sets the center of the shape to p.
impl Volumetric for OBB
[src]
fn rotate<R: Rotation3<f32>>(self, rot: R) -> Self
[src]
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
[src]
Rotates the object around a point.
impl Convex<Point3<f32>> for OBB
[src]
impl Inertia for OBB
[src]
impl Clone for OBB
[src]
fn clone(&self) -> OBB
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for OBB
[src]
impl Debug for OBB
[src]
impl Add<Vector3<f32>> for OBB
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self
[src]
impl Sub<Vector3<f32>> for OBB
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self
[src]
impl AddAssign<Vector3<f32>> for OBB
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl SubAssign<Vector3<f32>> for OBB
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,