Struct amethyst_renderer::Camera [] [src]

pub struct Camera {
    pub proj: [[f32; 4]; 4],
    pub view: [[f32; 4]; 4],
}

Contains the graphical transforms for a camera.

Fields

Graphical projection matrix.

The view matrix.

Methods

impl Camera
[src]

Creates a new camera with the given projection and view matrices.

Returns a realistic perspective projection matrix.

Returns an orthographic projection matrix..

Returns a 4x4 view matrix.

Trait Implementations

impl Copy for Camera
[src]

impl Clone for Camera
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more