#[repr(C, align(16))]pub struct StaLorentzBoost {
pub cosh_half: f32,
pub sinh_half_x: f32,
pub sinh_half_y: f32,
pub sinh_half_z: f32,
}Expand description
Lorentz Boost Versor (hyperbolic rotor) along velocity vector v = (vx, vy, vz). B = cosh(phi/2) - sinh(phi/2) * (v_hat . \sigma).
Fields§
§cosh_half: f32§sinh_half_x: f32§sinh_half_y: f32§sinh_half_z: f32Implementations§
Source§impl StaLorentzBoost
impl StaLorentzBoost
Sourcepub fn from_velocity(vx: f32, vy: f32, vz: f32) -> Self
pub fn from_velocity(vx: f32, vy: f32, vz: f32) -> Self
Constructs a Lorentz boost from velocity vector v = (vx, vy, vz) with c = 1. beta = ||v|| < 1.0.
Sourcepub fn transform_vector(&self, v: &StaVector) -> StaVector
pub fn transform_vector(&self, v: &StaVector) -> StaVector
Transforms a Minkowski 4-vector via 2-versor sandwich x’ = B * x * B~.
Trait Implementations§
Source§impl Clone for StaLorentzBoost
impl Clone for StaLorentzBoost
impl Copy for StaLorentzBoost
Source§impl Debug for StaLorentzBoost
impl Debug for StaLorentzBoost
Source§impl PartialEq for StaLorentzBoost
impl PartialEq for StaLorentzBoost
impl StructuralPartialEq for StaLorentzBoost
Auto Trait Implementations§
impl Forget for StaLorentzBoost
impl Freeze for StaLorentzBoost
impl Move for StaLorentzBoost
impl RefUnwindSafe for StaLorentzBoost
impl Send for StaLorentzBoost
impl Sync for StaLorentzBoost
impl Unpin for StaLorentzBoost
impl UnsafeUnpin for StaLorentzBoost
impl UnwindSafe for StaLorentzBoost
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