pub struct CameraComponent {
pub eye: Vec3,
pub target: Vec3,
pub up: Vec3,
pub fov_y: f32,
pub z_near: f32,
pub z_far: f32,
}Fields§
§eye: Vec3§target: Vec3§up: Vec3§fov_y: f32§z_near: f32§z_far: f32Implementations§
Trait Implementations§
Source§impl Clone for CameraComponent
impl Clone for CameraComponent
Source§fn clone(&self) -> CameraComponent
fn clone(&self) -> CameraComponent
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 moreSource§impl Debug for CameraComponent
impl Debug for CameraComponent
Auto Trait Implementations§
impl Freeze for CameraComponent
impl RefUnwindSafe for CameraComponent
impl Send for CameraComponent
impl Sync for CameraComponent
impl Unpin for CameraComponent
impl UnsafeUnpin for CameraComponent
impl UnwindSafe for CameraComponent
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,
impl<T> Component 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