pub struct PmiCamera {
pub eye: [f64; 3],
pub target: [f64; 3],
pub up: [f64; 3],
pub projection: PmiProjection,
pub viewport: [f64; 2],
}Expand description
The camera snapshot: eye / target / up / projection / viewport size — the
render crate’s ViewCamera minus near/far, which are a per-frame depth
window and never persisted. Applying a snapshot under another viewport
aspect refits the frustum, preserving the apparent size at the target.
Fields§
§eye: [f64; 3]§target: [f64; 3]§up: [f64; 3]§projection: PmiProjection§viewport: [f64; 2][width, height] of the viewport the snapshot was taken in (CSS px).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PmiCamera
impl<'de> Deserialize<'de> for PmiCamera
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
impl StructuralPartialEq for PmiCamera
Auto Trait Implementations§
impl Freeze for PmiCamera
impl RefUnwindSafe for PmiCamera
impl Send for PmiCamera
impl Sync for PmiCamera
impl Unpin for PmiCamera
impl UnsafeUnpin for PmiCamera
impl UnwindSafe for PmiCamera
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