#[repr(C)]pub struct XPLMDrawInfo_t {
pub structSize: c_int,
pub x: f32,
pub y: f32,
pub z: f32,
pub pitch: f32,
pub heading: f32,
pub roll: f32,
}Expand description
XPLMDrawInfo_t
The XPLMDrawInfo_t structure contains positioning info for one object that is to be drawn. Be sure to set structSize to the size of the structure for future expansion.
Fields§
§structSize: c_intSet this to the size of this structure!
x: f32X location of the object in local coordinates.
y: f32Y location of the object in local coordinates.
z: f32Z location of the object in local coordinates.
pitch: f32Pitch in degres to rotate the object, positive is up.
heading: f32Heading in local coordinates to rotate the object, clockwise.
roll: f32Roll to rotate the object.
Trait Implementations§
Source§impl Clone for XPLMDrawInfo_t
impl Clone for XPLMDrawInfo_t
Source§fn clone(&self) -> XPLMDrawInfo_t
fn clone(&self) -> XPLMDrawInfo_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 XPLMDrawInfo_t
impl Debug for XPLMDrawInfo_t
impl Copy for XPLMDrawInfo_t
Auto Trait Implementations§
impl Freeze for XPLMDrawInfo_t
impl RefUnwindSafe for XPLMDrawInfo_t
impl Send for XPLMDrawInfo_t
impl Sync for XPLMDrawInfo_t
impl Unpin for XPLMDrawInfo_t
impl UnwindSafe for XPLMDrawInfo_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