pub fn new(pos: Point3<f32>, dir: Vector3<f32>, up: Vector3<f32>) -> PerspectiveCamera {
        PerspectiveCamera {
            pos,
            dir,
            up,

            // Supply a dummy screen resolution to provide a 1:1 aspect ratio.
            screen_resolution: cgmath::vec2(800.0, 800.0),

            proj: RwLock::new(Matrix4::one()),
            view: RwLock::new(Matrix4::one()),
            combined: RwLock::new(Matrix4::one()),

            dirty: AtomicBool::new(true)
        }
    }
/// Constructs a new perspective camera from the arguments supplied.
Constructs a new perspective camera from the arguments supplied.
Constructs a new perspective camera from the arguments supplied .
pub fn new(pos: Point3<f32>, dir: Vector3<f32>, up: Vector3<f32>) -> PerspectiveCamera {
        PerspectiveCamera {
            pos,
            dir,
            up,
            // Supply a dummy screen resolution to provide a 1:1 aspect ratio.
            screen_resolution: cgmath::vec2(800.0, 800.0),
            proj: RwLock::new(Matrix4::one()),
            view: RwLock::new(Matrix4::one()),
            combined: RwLock::new(Matrix4::one()),
            dirty: AtomicBool::new(true)
        }
    }
pub fn new ( pos : Point3 < f32 > , dir : Vector3 < f32 > , up : Vector3 < f32 > ) -> PerspectiveCamera { PerspectiveCamera { pos , dir , up , // Supply a dummy screen resolution to provide a 1:1 aspect ratio. screen_resolution : cgmath :: vec2 ( 800.0 , 800.0 ) , proj : RwLock :: new ( Matrix4 :: one ( ) ) , view : RwLock :: new ( Matrix4 :: one ( ) ) , combined : RwLock :: new ( Matrix4 :: one ( ) ) , dirty : AtomicBool :: new ( true ) } }
Constructs a new perspective camera from the arguments supplied.
Constructs a new perspective camera from the arguments supplied .
pos
Point3<f32>
dir
Vector3<f32>
up
Vector3<f32>
pos
Point3<f32>
dir
Vector3<f32>
up
Vector3<f32>