Enum rend3_types::CameraProjection
source · [−]pub enum CameraProjection {
Orthographic {
size: Vec3A,
},
Perspective {
vfov: f32,
near: f32,
},
Raw(Mat4),
}
Expand description
Describes how the world should be projected into the camera.
Variants
Orthographic
Fields
size: Vec3A
Size assumes the location is at the center of the camera area.
Perspective
Fields
vfov: f32
Vertical field of view in degrees.
near: f32
Near plane distance. All projection uses a infinite far plane.
Raw(Mat4)
Trait Implementations
sourceimpl Clone for CameraProjection
impl Clone for CameraProjection
sourcefn clone(&self) -> CameraProjection
fn clone(&self) -> CameraProjection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CameraProjection
impl Debug for CameraProjection
sourceimpl Default for CameraProjection
impl Default for CameraProjection
impl Copy for CameraProjection
Auto Trait Implementations
impl RefUnwindSafe for CameraProjection
impl Send for CameraProjection
impl Sync for CameraProjection
impl Unpin for CameraProjection
impl UnwindSafe for CameraProjection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more