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]

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]

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]

pub fn set_orthographic(
    &mut self,
    left: f32,
    right: f32,
    bottom: f32,
    top: f32,
    near_distance: f32,
    far_distance: f32,
    depth_range: DepthRange
)
[src]

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]

impl Debug for ViewFrustum[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.