pub enum GltfCameraProjection {
Perspective {
yfov_rad: f32,
aspect_ratio: Option<f32>,
znear: f32,
zfar: Option<f32>,
},
Orthographic {
xmag: f32,
ymag: f32,
znear: f32,
zfar: f32,
},
}Expand description
Perspective or orthographic projection imported from a glTF 2.0 / Blender camera.
Variants§
Perspective
Perspective projection with vertical field of view in radians.
Fields
Orthographic
Orthographic projection with horizontal and vertical half-extents.
Trait Implementations§
Source§impl Clone for GltfCameraProjection
impl Clone for GltfCameraProjection
impl Copy for GltfCameraProjection
Source§impl Debug for GltfCameraProjection
impl Debug for GltfCameraProjection
Source§impl PartialEq for GltfCameraProjection
impl PartialEq for GltfCameraProjection
impl StructuralPartialEq for GltfCameraProjection
Auto Trait Implementations§
impl Forget for GltfCameraProjection
impl Freeze for GltfCameraProjection
impl Move for GltfCameraProjection
impl RefUnwindSafe for GltfCameraProjection
impl Send for GltfCameraProjection
impl Sync for GltfCameraProjection
impl Unpin for GltfCameraProjection
impl UnsafeUnpin for GltfCameraProjection
impl UnwindSafe for GltfCameraProjection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more