[][src]Struct three_d::core::camera::Camera

pub struct Camera { /* fields omitted */ }

Implementations

impl Camera[src]

pub fn new_orthographic(
    gl: &Gl,
    position: Vec3,
    target: Vec3,
    up: Vec3,
    width: f32,
    height: f32,
    depth: f32
) -> Camera
[src]

pub fn new_perspective(
    gl: &Gl,
    position: Vec3,
    target: Vec3,
    up: Vec3,
    fovy: Degrees,
    aspect: f32,
    z_near: f32,
    z_far: f32
) -> Camera
[src]

pub fn set_perspective_projection(
    &mut self,
    fovy: Degrees,
    aspect: f32,
    z_near: f32,
    z_far: f32
)
[src]

pub fn set_orthographic_projection(
    &mut self,
    width: f32,
    height: f32,
    depth: f32
)
[src]

pub fn set_size(&mut self, width: f32, height: f32)[src]

pub fn set_view(&mut self, position: Vec3, target: Vec3, up: Vec3)[src]

pub fn mirror_in_xz_plane(&mut self)[src]

pub fn view_direction_at(&self, screen_coordinates: (f64, f64)) -> Vec3[src]

pub fn get_view(&self) -> &Mat4[src]

pub fn get_projection(&self) -> &Mat4[src]

pub fn position(&self) -> &Vec3[src]

pub fn target(&self) -> &Vec3[src]

pub fn up(&self) -> &Vec3[src]

pub fn matrix_buffer(&self) -> &UniformBuffer[src]

pub fn in_frustrum(&self, min: &Vec3, max: &Vec3) -> bool[src]

pub fn translate(&mut self, change: &Vec3)[src]

pub fn rotate(&mut self, xrel: f32, yrel: f32)[src]

pub fn zoom(&mut self, wheel: f32)[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> Erased for T

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

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

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.