pub struct PlaneCamera {
pub pan_x: f32,
pub pan_y: f32,
pub zoom: f32,
pub rotation: f32,
pub origin_x: f32,
pub origin_y: f32,
}Expand description
Scene camera resolved at a fixed time, ready for per-plane application.
Fields§
§pan_x: f32§pan_y: f32§zoom: f32§rotation: f32§origin_x: f32Focal point in frame pixels (already resolved; default = frame centre).
origin_y: f32Trait Implementations§
Source§impl Clone for PlaneCamera
impl Clone for PlaneCamera
Source§fn clone(&self) -> PlaneCamera
fn clone(&self) -> PlaneCamera
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlaneCamera
Source§impl Debug for PlaneCamera
impl Debug for PlaneCamera
Source§impl PartialEq for PlaneCamera
impl PartialEq for PlaneCamera
impl StructuralPartialEq for PlaneCamera
Auto Trait Implementations§
impl Freeze for PlaneCamera
impl RefUnwindSafe for PlaneCamera
impl Send for PlaneCamera
impl Sync for PlaneCamera
impl Unpin for PlaneCamera
impl UnsafeUnpin for PlaneCamera
impl UnwindSafe for PlaneCamera
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more