Enum gl_utils::camera3d::Projection3dInner [−][src]
pub enum Projection3dInner { Perspective { perspective_fov: PerspectiveFov<f32>, mat: Matrix4<f32>, }, Orthographic { zoom: f32, ortho: Ortho<f32>, mat: Matrix4<f32>, }, }
Either a Perspective
or Orthographic
projection
Variants
Perspective
Fields of Perspective
perspective_fov: PerspectiveFov<f32> | Used to create the perspective projection matrix |
mat: Matrix4<f32> | Constructed from the parameters in |
Orthographic
Fields of Orthographic
zoom: f32 | Constant factor to zoom in and out orthographically. The scale at |
ortho: Ortho<f32> | Used to create the orthographic projection matrix |
mat: Matrix4<f32> | Constructed from the parameters in |
Auto Trait Implementations
impl Send for Projection3dInner
impl Send for Projection3dInner
impl Sync for Projection3dInner
impl Sync for Projection3dInner