[][src]Struct rg3d_core::math::aabb::AxisAlignedBoundingBox

pub struct AxisAlignedBoundingBox {
    pub min: Vec3,
    pub max: Vec3,
}

Fields

min: Vec3max: Vec3

Implementations

impl AxisAlignedBoundingBox[src]

pub const UNIT: AxisAlignedBoundingBox[src]

pub const fn from_min_max(min: Vec3, max: Vec3) -> Self[src]

pub fn from_points(points: &[Vec3]) -> Self[src]

pub fn add_point(&mut self, a: Vec3)[src]

pub fn corners(&self) -> [Vec3; 8][src]

pub fn offset(&mut self, v: Vec3)[src]

pub fn center(&self) -> Vec3[src]

pub fn half_extents(&self) -> Vec3[src]

pub fn invalidate(&mut self)[src]

pub fn is_contains_point(&self, point: Vec3) -> bool[src]

pub fn is_intersects_sphere(&self, position: Vec3, radius: f32) -> bool[src]

pub fn intersect_aabb(&self, other: &Self) -> bool[src]

pub fn transform(&mut self, m: Mat4)[src]

Trait Implementations

impl Clone for AxisAlignedBoundingBox[src]

impl Copy for AxisAlignedBoundingBox[src]

impl Debug for AxisAlignedBoundingBox[src]

impl Default for AxisAlignedBoundingBox[src]

impl Visit for AxisAlignedBoundingBox[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]