Struct rafx_visibility::ViewFrustum
source · pub struct ViewFrustum { /* private fields */ }
Implementations§
source§impl ViewFrustum
impl ViewFrustum
pub const NEAR: usize = 0usize
pub const FAR: usize = 1usize
pub const LEFT: usize = 2usize
pub const RIGHT: usize = 3usize
pub const TOP: usize = 4usize
pub const BOTTOM: usize = 5usize
pub fn empty() -> Self
pub fn new_perspective( eye_position: Vec3, look_at: Vec3, up: Vec3, fov_y_radians: f32, ratio: f32, near_distance: f32, far_distance: f32, depth_range: DepthRange ) -> Self
pub fn new_orthographic( eye_position: Vec3, look_at: Vec3, up: Vec3, left: f32, right: f32, bottom: f32, top: f32, near_distance: f32, far_distance: f32, depth_range: DepthRange ) -> Self
pub fn get_projection(&self) -> &Projection
pub fn set_perspective( &mut self, fov_y_radians: f32, ratio: f32, near_distance: f32, far_distance: f32, depth_range: DepthRange )
pub fn set_orthographic( &mut self, left: f32, right: f32, bottom: f32, top: f32, near_distance: f32, far_distance: f32, depth_range: DepthRange )
pub fn set_transforms(&mut self, eye_position: Vec3, look_at: Vec3, up: Vec3)
pub fn eye_position(&self) -> Vec3
pub fn look_at(&self) -> Vec3
pub fn up(&self) -> Vec3
pub fn acquire_frustum(&self) -> Frustum
Trait Implementations§
source§impl Clone for ViewFrustum
impl Clone for ViewFrustum
source§fn clone(&self) -> ViewFrustum
fn clone(&self) -> ViewFrustum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ViewFrustum
impl Send for ViewFrustum
impl Sync for ViewFrustum
impl Unpin for ViewFrustum
impl UnwindSafe for ViewFrustum
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