Struct rafx_visibility::ViewFrustum [−][src]
pub struct ViewFrustum { /* fields omitted */ }
Implementations
impl ViewFrustum
[src]
pub const NEAR: usize
[src]
pub const FAR: usize
[src]
pub const LEFT: usize
[src]
pub const RIGHT: usize
[src]
pub const TOP: usize
[src]
pub const BOTTOM: usize
[src]
pub fn empty() -> Self
[src]
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
[src]
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
[src]
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
[src]
pub fn set_perspective(
&mut self,
fov_y_radians: f32,
ratio: f32,
near_distance: f32,
far_distance: f32,
depth_range: DepthRange
)
[src]
&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
)
[src]
&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)
[src]
pub fn eye_position(&self) -> Vec3
[src]
pub fn look_at(&self) -> Vec3
[src]
pub fn up(&self) -> Vec3
[src]
pub fn acquire_frustum(&self) -> RwLockReadGuard<'_, Frustum>
[src]
Returns RwLockReadGuard. If the frustum is invalid, it will first be updated.
Trait Implementations
impl Clone for ViewFrustum
[src]
fn clone(&self) -> ViewFrustum
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ViewFrustum
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,