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

Fields of Perspective

Used to create the perspective projection matrix

Constructed from the parameters in perspective_fov to transform points in view space to 4D homogenous clip coordinates based on a perspective projection

Fields of Orthographic

Constant factor to zoom in and out orthographically.

The scale at zoom == 1.0 is defined by the constant ORTHOGRAPHIC_PIXEL_SCALE.

Used to create the orthographic projection matrix

Constructed from the parameters in ortho to transform points in view space to 4D homogenous clip coordinates based on an orthographic projection

Auto Trait Implementations

impl Send for Projection3dInner

impl Sync for Projection3dInner