Struct game_kernel::game_kernel::subsystems::video::renderer::camera::Camera[][src]

pub struct Camera {
    pub eye: Point3<f32>,
    pub dir: Vector3<f32>,
    pub up: Vector3<f32>,
    pub fov: Rad<f32>,
    // some fields omitted
}

Fields

eye: Point3<f32>dir: Vector3<f32>up: Vector3<f32>fov: Rad<f32>

Implementations

impl Camera[src]

pub fn new(
    eye: Point3<f32>,
    dir: Vector3<f32>,
    up: Vector3<f32>,
    fov: Rad<f32>,
    clipping: (f32, f32)
) -> Self
[src]

pub fn get_view(&self) -> Matrix4<f32>[src]

pub fn get_proj(&self, aspect_ratio: f32) -> Matrix4<f32>[src]

pub fn get_eye(&self) -> Vector3<f32>[src]

Trait Implementations

impl Clone for Camera[src]

impl Copy for Camera[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.