pub struct Camera3D {
pub cry: f32,
pub sry: f32,
pub crx: f32,
pub srx: f32,
pub cx: f32,
pub cy: f32,
pub focal: f32,
pub zdist: f32,
pub tx: f32,
pub ty: f32,
pub tz: f32,
}Fields§
§cry: f32Precomputed cos/sin of the Y-axis rotation angle.
sry: f32§crx: f32Precomputed cos/sin of the X-axis rotation angle.
srx: f32§cx: f32Screen-centre in pixels (set automatically when the window opens).
cy: f32§focal: f32Focal length in pixels — controls field of view.
zdist: f32Z offset added before the perspective divide (keeps objects in front of the camera; typical value 4–6).
tx: f32World-space camera position — subtracted from every point before rotation. Move the camera with set_camera_pos / move_camera.
ty: f32§tz: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Camera3D
impl RefUnwindSafe for Camera3D
impl Send for Camera3D
impl Sync for Camera3D
impl Unpin for Camera3D
impl UnsafeUnpin for Camera3D
impl UnwindSafe for Camera3D
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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