pub struct LorentzBoost {
pub beta_x: f64,
pub beta_y: f64,
pub beta_z: f64,
}Expand description
Relativistic Lorentz Boost SO+(1,3) parameterised by dimensionless velocity vector beta = v / c.
Fields§
§beta_x: f64§beta_y: f64§beta_z: f64Implementations§
Source§impl LorentzBoost
impl LorentzBoost
Sourcepub fn new(beta_x: f64, beta_y: f64, beta_z: f64) -> Result<Self, &'static str>
pub fn new(beta_x: f64, beta_y: f64, beta_z: f64) -> Result<Self, &'static str>
Creates a new LorentzBoost.
Sourcepub fn matrix(&self) -> [[f64; 4]; 4]
pub fn matrix(&self) -> [[f64; 4]; 4]
Exact 4x4 matrix representation Lambda^mu_nu in SO+(1,3).
Sourcepub fn transform(&self, v: FourVector) -> FourVector
pub fn transform(&self, v: FourVector) -> FourVector
Transform a 4-vector under this Lorentz boost.
Trait Implementations§
Source§impl Clone for LorentzBoost
impl Clone for LorentzBoost
impl Copy for LorentzBoost
Source§impl Debug for LorentzBoost
impl Debug for LorentzBoost
Source§impl PartialEq for LorentzBoost
impl PartialEq for LorentzBoost
impl StructuralPartialEq for LorentzBoost
Auto Trait Implementations§
impl Freeze for LorentzBoost
impl RefUnwindSafe for LorentzBoost
impl Send for LorentzBoost
impl Sync for LorentzBoost
impl Unpin for LorentzBoost
impl UnsafeUnpin for LorentzBoost
impl UnwindSafe for LorentzBoost
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