Struct three::camera::Camera
[−]
[src]
pub struct Camera { pub projection: Projection, // some fields omitted }
Camera is used to render Scene with specific Projection
.
Fields
projection: Projection
Projection parameters of this camera.
Methods
impl Camera
[src]
pub fn matrix(&self, aspect_ratio: f32) -> ColumnMatrix4<f32>
[src]
Computes the projection matrix representing the camera's projection.
Trait Implementations
impl Clone for Camera
[src]
fn clone(&self) -> Camera
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Camera
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Camera
[src]
fn eq(&self, __arg_0: &Camera) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Camera) -> bool
[src]
This method tests for !=
.
impl AsRef<Base> for Camera
[src]
impl Object for Camera
[src]
fn upcast(&self) -> Base
[src]
Converts into the base type.
fn set_visible(&self, visible: bool)
[src]
Invisible objects are not rendered by cameras.
fn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32) where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
[src]
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
Set both position, orientation and scale.
fn set_position<P>(&self, pos: P) where
Self: Sized,
P: Into<Point3<f32>>,
[src]
Self: Sized,
P: Into<Point3<f32>>,
Set position.
fn set_orientation<Q>(&self, rot: Q) where
Self: Sized,
Q: Into<Quaternion<f32>>,
[src]
Self: Sized,
Q: Into<Quaternion<f32>>,
Set orientation.
fn set_scale(&self, scale: f32)
[src]
Set scale.
fn set_weights(&self, weights: Vec<f32>)
[src]
Set weights.
fn look_at<E, T>(&self, eye: E, target: T, up: Option<Vector3<f32>>) where
Self: Sized,
E: Into<Point3<f32>>,
T: Into<Point3<f32>>,
[src]
Self: Sized,
E: Into<Point3<f32>>,
T: Into<Point3<f32>>,
Rotates object in the specific direction of target
.