Skip to main content

LengthVec

Type Alias LengthVec 

Source
pub type LengthVec = QVec3<1, 0, 0, 0, 0, 0, 0>;
Expand description

A position or a displacement, m. The same dimension, and deliberately the same type: the difference between them is a choice of origin, not of physics.

Aliased Type§

pub struct LengthVec(/* private fields */);

Implementations§

Source§

impl LengthVec

Source

pub fn mm(x: f64, y: f64, z: f64) -> LengthVec

Millimetres.

Source

pub fn m(x: f64, y: f64, z: f64) -> LengthVec

Metres.

Source

pub fn in_mm(self) -> DVec3

As millimetres.

Trait Implementations§

Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for LengthVec

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Time) -> VelocityVec

Performs the / operation. Read more
Source§

impl Mul<Qty<0, 1, -2, 0, 0, 0, 0>> for LengthVec

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Stiffness) -> ForceVec

Performs the * operation. Read more