Struct gltf_json::camera::Perspective [−][src]
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
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
Auto Trait Implementations
impl RefUnwindSafe for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Unpin for Perspective
impl UnwindSafe for Perspective
Blanket Implementations
Mutably borrows from an owned value. Read more