pub struct ModelInstance {
pub position: GeoCoord,
pub altitude_mode: AltitudeMode,
pub heading: f64,
pub pitch: f64,
pub roll: f64,
pub scale: f64,
pub mesh: ModelMesh,
}Expand description
A placed instance of a 3D model on the map.
Fields§
§position: GeoCoordGeographic position of the model origin.
altitude_mode: AltitudeModeAltitude mode.
heading: f64Rotation around the up axis in radians (0 = north).
pitch: f64Pitch rotation in radians.
roll: f64Roll rotation in radians.
scale: f64Uniform scale factor.
mesh: ModelMeshThe mesh data for this model.
Implementations§
Trait Implementations§
Source§impl Clone for ModelInstance
impl Clone for ModelInstance
Source§fn clone(&self) -> ModelInstance
fn clone(&self) -> ModelInstance
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 moreAuto Trait Implementations§
impl Freeze for ModelInstance
impl RefUnwindSafe for ModelInstance
impl Send for ModelInstance
impl Sync for ModelInstance
impl Unpin for ModelInstance
impl UnsafeUnpin for ModelInstance
impl UnwindSafe for ModelInstance
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