Enum amethyst_renderer::Projection [−][src]
The projection mode of a Camera
.
TODO: Remove and integrate with Camera
.
Variants
Orthographic(Ortho<f32>)
Perspective(PerspectiveFov<f32>)
A realistic perspective projection.
Methods
impl Projection
[src]
impl Projection
pub fn orthographic(l: f32, r: f32, t: f32, b: f32) -> Projection
[src]
pub fn orthographic(l: f32, r: f32, t: f32, b: f32) -> Projection
Creates an orthographic projection with the given left, right, top, and bottom plane distances.
pub fn perspective<D: Into<Deg<f32>>>(aspect: f32, fov: D) -> Projection
[src]
pub fn perspective<D: Into<Deg<f32>>>(aspect: f32, fov: D) -> Projection
Creates a perspective projection with the given aspect ratio and field-of-view.
Trait Implementations
impl Clone for Projection
[src]
impl Clone for Projection
fn clone(&self) -> Projection
[src]
fn clone(&self) -> Projection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Projection
[src]
impl Debug for Projection
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Projection
[src]
impl PartialEq for Projection
fn eq(&self, other: &Projection) -> bool
[src]
fn eq(&self, other: &Projection) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Projection) -> bool
[src]
fn ne(&self, other: &Projection) -> bool
This method tests for !=
.
impl From<Projection> for Matrix4<f32>
[src]
impl From<Projection> for Matrix4<f32>
fn from(proj: Projection) -> Self
[src]
fn from(proj: Projection) -> Self
Performs the conversion.
impl From<Projection> for Camera
[src]
impl From<Projection> for Camera
fn from(proj: Projection) -> Self
[src]
fn from(proj: Projection) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for Projection
impl Send for Projection
impl Sync for Projection
impl Sync for Projection