[−][src]Struct mgf::AABB
An Axis Aligned Bounding Box.
AABBs are closed boxes aligned to the axes of the coordinate system. AABBs are described by a point and three half widths.
AABBs being closed means that a point lying on the surface of the AABB is considered contained by the AABB.
Fields
c: Point3<f32>
r: Vector3<f32>
Methods
impl AABB
[src]
Trait Implementations
impl Bound for AABB
[src]
fn combine(a: &AABB, b: &AABB) -> AABB
[src]
The returned AABB is the smallest volume possible that encloses both arguments. At least I think, I Can't remember if that claim is true. I'll have to check sometime.
fn surface_area(&self) -> f32
[src]
impl BoundedBy<AABB> for Triangle
[src]
impl BoundedBy<AABB> for Rectangle
[src]
impl BoundedBy<AABB> for Sphere
[src]
impl BoundedBy<AABB> for Capsule
[src]
impl BoundedBy<AABB> for OBB
[src]
impl BoundedBy<Sphere> for AABB
[src]
Taking the bounding sphere of an AABB creates a sphere that contains all of the extreme points of the AABB. Thus, a bounding sphere for an AABB created from another bounding sphere will be larger in size than the original sphere.
impl BoundedBy<AABB> for Component
[src]
impl BoundedBy<AABB> for Compound
[src]
impl Overlaps<AABB> for AABB
[src]
impl Overlaps<Sphere> for AABB
[src]
impl Overlaps<AABB> for Sphere
[src]
impl Contains<Point3<f32>> for AABB
[src]
impl Contains<AABB> for AABB
[src]
impl<P: Particle> Intersects<AABB> for P
[src]
fn intersection(&self, a: &AABB) -> Option<Intersection>
[src]
impl Shape for AABB
[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 AABB
[src]
fn rotate<R: Rotation3<f32>>(self, rot: R) -> AABB
[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 AABB
[src]
impl Clone for AABB
[src]
fn clone(&self) -> AABB
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for AABB
[src]
impl Add<f32> for AABB
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, s: f32) -> AABB
[src]
Extend AABB
impl Add<Vector3<f32>> for AABB
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self
[src]
impl Sub<f32> for AABB
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, s: f32) -> Self
[src]
Shrink AABB
impl Sub<Vector3<f32>> for AABB
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self
[src]
impl Mul<f32> for AABB
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, s: f32) -> AABB
[src]
Expand AABB
impl Div<f32> for AABB
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, s: f32) -> Self
[src]
Compress AABB
impl AddAssign<Vector3<f32>> for AABB
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl SubAssign<Vector3<f32>> for AABB
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
impl Debug for AABB
[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 = !
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>,