pub struct Cam {
pub _id: u64,
pub _proj_xform: Mat4<f32>,
pub _fov: f32,
pub _aspect: f32,
pub _near: f32,
pub _far: f32,
pub _view_xform: Mat4<f32>,
pub _pos: Mat3x1<f32>,
pub _pos_orig: Mat3x1<f32>,
pub _up: Mat3x1<f32>,
pub _focus: Mat3x1<f32>,
}
Fields§
§_id: u64
§helper id for the camera
_proj_xform: Mat4<f32>
§_fov: f32
§The following generates the projection matrix
_aspect: f32
§_near: f32
§_far: f32
§_view_xform: Mat4<f32>
§_pos: Mat3x1<f32>
§The following generates the view matrix
_pos_orig: Mat3x1<f32>
§_up: Mat3x1<f32>
§_focus: Mat3x1<f32>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cam
impl RefUnwindSafe for Cam
impl Send for Cam
impl Sync for Cam
impl Unpin for Cam
impl UnwindSafe for Cam
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> IObjImplClone for T
impl<T> IObjImplClone for T
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