Skip to main content

VectorUnit

Trait VectorUnit 

Source
pub trait VectorUnit:
    Sealed
    + Copy
    + Debug
    + PartialEq
    + Add<Output = Self>
    + Sub<Output = Self>
    + Neg<Output = Self>
    + Mul<f64, Output = Self> {
    // Required methods
    fn si(self) -> f64;
    fn from_si(value: f64) -> Self;
}
Expand description

Quantity carried by each Vector3 component.

Sealed: Distance and Speed only. Arithmetic is done in SI (m, m/s).

Required Methods§

Source

fn si(self) -> f64

Value in SI.

Source

fn from_si(value: f64) -> Self

From an SI value known to be finite.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§