Struct mgf::OBB [−][src]
An arbitrarily oriented bounding box.
Fields
c: Point3<f32>
q: Quaternion<f32>
r: Vector3<f32>
Methods
impl OBB
[src]
impl OBB
Trait Implementations
impl BoundedBy<AABB> for OBB
[src]
impl BoundedBy<AABB> for OBB
impl BoundedBy<Sphere> for OBB
[src]
impl BoundedBy<Sphere> for OBB
impl<P: Particle> Intersects<OBB> for P
[src]
impl<P: Particle> Intersects<OBB> for P
fn intersection(&self, o: &OBB) -> Option<Intersection>
[src]
fn intersection(&self, o: &OBB) -> Option<Intersection>
Returns an Intersection if one exists.
impl Copy for OBB
[src]
impl Copy for OBB
impl Clone for OBB
[src]
impl Clone for OBB
fn clone(&self) -> OBB
[src]
fn clone(&self) -> OBB
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for OBB
[src]
impl Debug for OBB
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Add<Vector3<f32>> for OBB
[src]
impl Add<Vector3<f32>> for OBB
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self
[src]
fn add(self, v: Vector3<f32>) -> Self
Performs the +
operation.
impl Sub<Vector3<f32>> for OBB
[src]
impl Sub<Vector3<f32>> for OBB
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self
[src]
fn sub(self, v: Vector3<f32>) -> Self
Performs the -
operation.
impl AddAssign<Vector3<f32>> for OBB
[src]
impl AddAssign<Vector3<f32>> for OBB
fn add_assign(&mut self, v: Vector3<f32>)
[src]
fn add_assign(&mut self, v: Vector3<f32>)
Performs the +=
operation.
impl SubAssign<Vector3<f32>> for OBB
[src]
impl SubAssign<Vector3<f32>> for OBB
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
Performs the -=
operation.
impl Shape for OBB
[src]
impl Shape for OBB
fn center(&self) -> Point3<f32>
[src]
fn center(&self) -> Point3<f32>
Returns the center of mass of the geometry, assuming a regular density.
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
Returns the closest point on the shape to the given point.
fn set_pos(&mut self, p: Point3<f32>)
[src]
fn set_pos(&mut self, p: Point3<f32>)
Sets the center of the shape to p.
impl Volumetric for OBB
[src]
impl Volumetric for OBB
fn rotate<R: Rotation3<f32>>(self, rot: R) -> Self
[src]
fn rotate<R: Rotation3<f32>>(self, rot: R) -> Self
Rotate the bound in place. This is useless for spheres.
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
[src]
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
Rotates the object around a point.
impl Convex for OBB
[src]
impl Convex for OBB