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
type Projection: Into<Matrix4<S>>
Associated projection type (perspective, ortho, etc)
Required Methods
fn get_projection(&self) -> Self::Projection
Get the projection.
Provided Methods
fn get_view_projection(&self) -> Matrix4<S> where
S: BaseFloat,
Self::Transform: Transform3<S>,
S: BaseFloat,
Self::Transform: Transform3<S>,
Compute the view-projection matrix.