[][src]Struct macroquad::Camera3D

pub struct Camera3D {
    pub position: Vec3,
    pub target: Vec3,
    pub up: Vec3,
    pub fovy: f32,
    pub aspect: Option<f32>,
    pub projection: Projection,
}

Fields

position: Vec3

Camera position

target: Vec3

Camera target it looks-at

up: Vec3

Camera up vector (rotation over its axis)

fovy: f32

Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic

aspect: Option<f32>

Screen aspect ratio By default aspect is calculated with screen_width() / screen_height() on each frame

projection: Projection

Camera projection type, perspective or orthographics

Trait Implementations

impl Camera for Camera3D[src]

impl Clone for Camera3D[src]

impl Copy for Camera3D[src]

impl Debug for Camera3D[src]

impl Default for Camera3D[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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.