Struct gltf_json::camera::Perspective
source · pub struct Perspective {
pub aspect_ratio: Option<f32>,
pub yfov: f32,
pub zfar: Option<f32>,
pub znear: f32,
pub extensions: Option<Perspective>,
pub extras: Extras,
}
Expand description
Values for a perspective camera.
Fields§
§aspect_ratio: Option<f32>
Aspect ratio of the field of view.
yfov: f32
The vertical field of view in radians.
zfar: Option<f32>
The distance to the far clipping plane.
znear: f32
The distance to the near clipping plane.
extensions: Option<Perspective>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl Clone for Perspective
impl Clone for Perspective
source§fn clone(&self) -> Perspective
fn clone(&self) -> Perspective
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Perspective
impl Debug for Perspective
source§impl<'de> Deserialize<'de> for Perspective
impl<'de> Deserialize<'de> for Perspective
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Perspective
impl Serialize for Perspective
Auto Trait Implementations§
impl Freeze for Perspective
impl RefUnwindSafe for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Unpin for Perspective
impl UnwindSafe for Perspective
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