oa::Aabb

Axis-aligned bounding box. Donor: oa::Aabb in oacpp/source/cpp/include/oa/render/fnMesh.h.

StRust public API

Declaration

pub struct Aabb { pub min: Vec3, pub max: Vec3, }
Public Rust declaration.

Public Methods

pub fn center(self) -> Vec3
pub fn extent(self) -> Vec3
pub fn volume(self) -> f32
pub fn contains(self, point: Vec3) -> bool
fn clone(&self) -> Aabb
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &Aabb) -> bool

Associated Functions

fn default() -> Aabb

Public Data Members

minVec3field
maxVec3field

Public Method Documentation

pub fn center( self ) -> Vec3
No public source comment is attached to this declaration.
pub fn extent( self ) -> Vec3
No public source comment is attached to this declaration.
pub fn volume( self ) -> f32
No public source comment is attached to this declaration.
pub fn contains( self, point: Vec3 ) -> bool
No public source comment is attached to this declaration.
fn clone( &self ) -> Aabb
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &Aabb ) -> bool
No public source comment is attached to this declaration.
fn default() -> Aabb
No public source comment is attached to this declaration.