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 Projectionpub fn orthographic(l: f32, r: f32, t: f32, b: f32) -> Projection[src]
pub fn orthographic(l: f32, r: f32, t: f32, b: f32) -> ProjectionCreates 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) -> ProjectionCreates a perspective projection with the given aspect ratio and field-of-view.
Trait Implementations
impl Clone for Projection[src]
impl Clone for Projectionfn clone(&self) -> Projection[src]
fn clone(&self) -> ProjectionReturns 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 Projectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Projection[src]
impl PartialEq for Projectionfn eq(&self, other: &Projection) -> bool[src]
fn eq(&self, other: &Projection) -> boolThis 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) -> boolThis 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) -> SelfPerforms the conversion.
impl From<Projection> for Camera[src]
impl From<Projection> for Camerafn from(proj: Projection) -> Self[src]
fn from(proj: Projection) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for Projection
impl Send for Projectionimpl Sync for Projection
impl Sync for Projection