[][src]Struct kiss3d::camera::FirstPersonStereo

pub struct FirstPersonStereo { /* fields omitted */ }

First-person camera mode.

  • Left button press + drag - look around
  • Right button press + drag - translates the camera position on the plane orthogonal to the view direction
  • Scroll in/out - zoom in/out

Methods

impl FirstPersonStereo[src]

pub fn new(eye: Point3<f32>, at: Point3<f32>, ipd: f32) -> FirstPersonStereo[src]

Creates a first person camera with default sensitivity values.

pub fn new_with_frustrum(
    fov: f32,
    znear: f32,
    zfar: f32,
    eye: Point3<f32>,
    at: Point3<f32>,
    ipd: f32
) -> FirstPersonStereo
[src]

Creates a new first person camera with default sensitivity values.

pub fn look_at(&mut self, eye: Point3<f32>, at: Point3<f32>)[src]

Changes the orientation and position of the camera to look at the specified point.

pub fn at(&self) -> Point3<f32>[src]

The point the camera is looking at.

pub fn ipd(&self) -> f32[src]

return Inter Pupilary Distance

pub fn set_ipd(&mut self, ipd: f32)[src]

change Inter Pupilary Distance

Trait Implementations

impl Camera for FirstPersonStereo[src]

fn view_transform(&self) -> Isometry3<f32>[src]

The imaginary middle eye camera view transformation (i-e transformation without projection).

fn project(
    &self,
    world_coord: &Point3<f32>,
    size: &Vector2<f32>
) -> Vector2<f32>
[src]

Converts a 3d point to 2d screen coordinates, assuming the screen has the size size.

fn unproject(
    &self,
    window_coord: &Point2<f32>,
    size: &Vector2<f32>
) -> (Point3<f32>, Vector3<f32>)
[src]

Converts a point in 2d screen coordinates to a ray (a 3d position and a direction). Read more

impl Debug for FirstPersonStereo[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T