#[repr(C)]pub struct XPLMCameraPosition_t {
pub x: f32,
pub y: f32,
pub z: f32,
pub pitch: f32,
pub heading: f32,
pub roll: f32,
pub zoom: f32,
}Expand description
XPLMCameraPosition_t
This structure contains a full specification of the camera. X, Y, and Z are the camera’s position in OpenGL coordinates; pitch, roll, and yaw are rotations from a camera facing flat north in degrees. Positive pitch means nose up, positive roll means roll right, and positive yaw means yaw right, all in degrees. Zoom is a zoom factor, with 1.0 meaning normal zoom and 2.0 magnifying by 2x (objects appear larger).
Fields§
§x: f32§y: f32§z: f32§pitch: f32§heading: f32§roll: f32§zoom: f32Trait Implementations§
Source§impl Clone for XPLMCameraPosition_t
impl Clone for XPLMCameraPosition_t
Source§fn clone(&self) -> XPLMCameraPosition_t
fn clone(&self) -> XPLMCameraPosition_t
Returns a duplicate of the value. Read more
1.0.0 · 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 XPLMCameraPosition_t
impl Debug for XPLMCameraPosition_t
impl Copy for XPLMCameraPosition_t
Auto Trait Implementations§
impl Freeze for XPLMCameraPosition_t
impl RefUnwindSafe for XPLMCameraPosition_t
impl Send for XPLMCameraPosition_t
impl Sync for XPLMCameraPosition_t
impl Unpin for XPLMCameraPosition_t
impl UnwindSafe for XPLMCameraPosition_t
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