Trait gfx_scene::Camera [] [src]

pub trait Camera<S>: Node {
    type Projection: Into<Matrix4<S>>;
    fn get_projection(&self) -> Self::Projection;

    fn get_view_projection(&self) -> Matrix4<S>
    where
        S: BaseFloat,
        Self::Transform: Transform3<S>
, { ... } }

An abstract camera.

Associated Types

Associated projection type (perspective, ortho, etc)

Required Methods

Get the projection.

Provided Methods

Compute the view-projection matrix.

Implementors