pub struct SpatialState {
pub position: Option<Position3D>,
pub rotation: Option<Rotation>,
pub velocity: Option<Velocity>,
pub acceleration: Option<Acceleration>,
}Fields§
§position: Option<Position3D>§rotation: Option<Rotation>§velocity: Option<Velocity>§acceleration: Option<Acceleration>Trait Implementations§
Source§impl Clone for SpatialState
impl Clone for SpatialState
Source§fn clone(&self) -> SpatialState
fn clone(&self) -> SpatialState
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 SpatialState
impl Debug for SpatialState
Source§impl Delta for SpatialState
impl Delta for SpatialState
type DeltaType = SpatialDelta
Source§fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
Computes the delta required to go from
start to end.
start + delta = endSource§fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
Applies a delta to
start to get end.
start + delta = endSource§impl<'de> Deserialize<'de> for SpatialState
impl<'de> Deserialize<'de> for SpatialState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpatialState
impl PartialEq for SpatialState
Source§impl Serialize for SpatialState
impl Serialize for SpatialState
impl StructuralPartialEq for SpatialState
Auto Trait Implementations§
impl Freeze for SpatialState
impl RefUnwindSafe for SpatialState
impl Send for SpatialState
impl Sync for SpatialState
impl Unpin for SpatialState
impl UnwindSafe for SpatialState
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