Struct rafx_visibility::ViewFrustum
source · [−]pub struct ViewFrustum { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for ViewFrustum
impl Clone for ViewFrustum
sourcefn clone(&self) -> ViewFrustum
fn clone(&self) -> ViewFrustum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ViewFrustum
impl Send for ViewFrustum
impl Sync for ViewFrustum
impl Unpin for ViewFrustum
impl UnwindSafe for ViewFrustum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more