pub struct CameraOrthographic {
pub xmag: f32,
pub ymag: f32,
pub zfar: f32,
pub znear: f32,
pub extensions: Option<Extension>,
}Expand description
An orthographic camera containing properties to create an orthographic projection matrix.
Fields§
§xmag: f32The floating-point horizontal magnification of the view. Must not be zero.
ymag: f32The floating-point vertical magnification of the view. Must not be zero.
zfar: f32The floating-point distance to the far clipping plane. zfar must be greater than znear.
znear: f32The floating-point distance to the near clipping plane.
extensions: Option<Extension>Dictionary object with extension-specific objects.
Trait Implementations§
Source§impl Clone for CameraOrthographic
impl Clone for CameraOrthographic
Source§fn clone(&self) -> CameraOrthographic
fn clone(&self) -> CameraOrthographic
Returns a duplicate 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 CameraOrthographic
impl Debug for CameraOrthographic
Source§impl<'a> Deserialize<'a> for CameraOrthographic
impl<'a> Deserialize<'a> for CameraOrthographic
fn deserialize<D: Deserializer<'a>>(deserializer: &mut D) -> Option<Self>
Source§impl Serialize for CameraOrthographic
impl Serialize for CameraOrthographic
fn serialize<S: Serializer>(&self, serializer: &mut S)
Auto Trait Implementations§
impl Freeze for CameraOrthographic
impl RefUnwindSafe for CameraOrthographic
impl Send for CameraOrthographic
impl Sync for CameraOrthographic
impl Unpin for CameraOrthographic
impl UnwindSafe for CameraOrthographic
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