#[repr(C)]pub struct Camera3D {
pub position: Vector3,
pub target: Vector3,
pub up: Vector3,
pub fovy: c_float,
pub projection: c_int,
}Expand description
Camera, defines position/orientation in 3d space
Fields§
§position: Vector3Camera position
target: Vector3Camera target it looks-at
up: Vector3Camera up vector (rotation over its axis)
fovy: c_floatCamera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic
projection: c_intCamera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
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 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