pub struct LorentzMorphism {
pub velocity: f64,
pub c: f64,
}Expand description
A Lorentz frame morphism — the relativistic transform.
Along the x-axis with velocity v: t’ = gamma * (t - vx/c²) x’ = gamma * (x - vt)
where gamma = 1/sqrt(1 - v²/c²).
Time dilation and length contraction are explicit. Valid for all v < c.
Fields§
§velocity: f64Velocity of the target frame along the x-axis (m/s).
c: f64Speed of light (m/s). Default: 299_792_458.0.
Implementations§
Source§impl LorentzMorphism
impl LorentzMorphism
Trait Implementations§
Source§impl Clone for LorentzMorphism
impl Clone for LorentzMorphism
Source§impl Debug for LorentzMorphism
impl Debug for LorentzMorphism
Source§impl PartialEq for LorentzMorphism
impl PartialEq for LorentzMorphism
impl StructuralPartialEq for LorentzMorphism
Auto Trait Implementations§
impl Freeze for LorentzMorphism
impl RefUnwindSafe for LorentzMorphism
impl Send for LorentzMorphism
impl Sync for LorentzMorphism
impl Unpin for LorentzMorphism
impl UnsafeUnpin for LorentzMorphism
impl UnwindSafe for LorentzMorphism
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