Realm

oa::WorldAabb

World-space axis-aligned bounds for canvas hit tests and fit targets. Donor: oa::WorldAabb.

StRust public API

Declaration

pub struct WorldAabb { pub min: [f32; 2], pub max: [f32; 2], }
Public Rust declaration.

Public Methods

pub fn is_valid(&self) -> bool
pub fn contains(&self, point: [f32; 2]) -> bool
pub fn intersects(&self, other: &Self) -> bool
fn clone(&self) -> WorldAabb
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

fn default() -> WorldAabb

Public Data Members

min[f32; 2]field
max[f32; 2]field

Public Method Documentation

pub fn is_valid( &self ) -> bool
No public source comment is attached to this declaration.
pub fn contains( &self, point: [f32; 2] ) -> bool
No public source comment is attached to this declaration.
pub fn intersects( &self, other: &Self ) -> bool
No public source comment is attached to this declaration.
fn clone( &self ) -> WorldAabb
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 default() -> WorldAabb
No public source comment is attached to this declaration.