pub struct Camera3D {
pub position: Vec3,
pub target: Vec3,
pub up: Vec3,
pub vertical_fov: f32,
}Expand description
Perspective 3D camera; resizing never changes its vertical FOV.
Fields§
§position: Vec3Eye position.
target: Vec3World point the camera looks toward.
up: Vec3Up direction, normally positive Y.
vertical_fov: f32Vertical field of view in degrees.
Implementations§
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