pub struct Frustum { /* private fields */ }Implementations§
Source§impl Frustum
impl Frustum
pub fn from_matrix(matrix: Mat4, depth: ClipDepth) -> Option<Frustum>
Sourcepub fn intersects_bounds(self, bounds: Bounds, transform: Mat4) -> bool
pub fn intersects_bounds(self, bounds: Bounds, transform: Mat4) -> bool
Exact transformed-box support test; conservative under nonuniform scale and shear.
pub fn contains_point(self, point: Vec3) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frustum
impl RefUnwindSafe for Frustum
impl Send for Frustum
impl Sync for Frustum
impl Unpin for Frustum
impl UnwindSafe for Frustum
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more