Struct mgf::OBB
[−]
[src]
pub struct OBB { pub c: Point3<f32>, pub q: Quaternion<f32>, pub r: Vector3<f32>, }
An arbitrarily oriented bounding box.
Fields
c: Point3<f32>
q: Quaternion<f32>
r: Vector3<f32>
Trait Implementations
impl Copy for OBB
[src]
impl Clone for OBB
[src]
fn clone(&self) -> OBB
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for OBB
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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]
Performs the +
operation.
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]
Performs the -
operation.
impl AddAssign<Vector3<f32>> for OBB
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
Performs the +=
operation.
impl SubAssign<Vector3<f32>> for OBB
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
Performs the -=
operation.
impl Shape for OBB
[src]
fn center(&self) -> Point3<f32>
[src]
Returns the center of mass of the geometry, assuming a regular density.
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
Returns the closest point on the shape to the given point.
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]
Rotate the bound in place. This is useless for spheres.
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
[src]
Rotates the object around a point.