pub struct Velocity3D {
pub x: Velocity,
pub y: Velocity,
pub z: Velocity,
}Expand description
Type-safe 3D velocity vector with dimensional safety.
Fields§
§x: Velocity§y: Velocity§z: VelocityImplementations§
Source§impl Velocity3D
impl Velocity3D
Sourcepub fn magnitude_squared(&self) -> f64
pub fn magnitude_squared(&self) -> f64
Calculate squared magnitude (avoids sqrt).
Trait Implementations§
Source§impl Add for Velocity3D
impl Add for Velocity3D
Source§impl Clone for Velocity3D
impl Clone for Velocity3D
Source§fn clone(&self) -> Velocity3D
fn clone(&self) -> Velocity3D
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 Velocity3D
impl Debug for Velocity3D
Source§impl<'de> Deserialize<'de> for Velocity3D
impl<'de> Deserialize<'de> for Velocity3D
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 Mul<OrbitTime> for Velocity3D
Position = Velocity * Time (dimensional operation).
impl Mul<OrbitTime> for Velocity3D
Position = Velocity * Time (dimensional operation).
Source§type Output = Position3D
type Output = Position3D
The resulting type after applying the
* operator.Source§impl Neg for Velocity3D
impl Neg for Velocity3D
Source§impl PartialEq for Velocity3D
impl PartialEq for Velocity3D
Source§impl Serialize for Velocity3D
impl Serialize for Velocity3D
Source§impl Sub for Velocity3D
impl Sub for Velocity3D
impl Copy for Velocity3D
impl StructuralPartialEq for Velocity3D
Auto Trait Implementations§
impl Freeze for Velocity3D
impl RefUnwindSafe for Velocity3D
impl Send for Velocity3D
impl Sync for Velocity3D
impl Unpin for Velocity3D
impl UnsafeUnpin for Velocity3D
impl UnwindSafe for Velocity3D
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