pub fn boost<'a>(initial: FourVec, v: ThreeVec) -> Result<FourVec, CalcifyError>Expand description
Returns a FourVec, inside a Result, boosted into a frame of arbitrary velocity v.
Each componant of v must be less than calcify::C_LIGHT. Uses a FourMat Lorentz Transformation tensor.
If **v** = [0,0,0], then the boost tensor will be an identity by definition.§Arguments
initial- calcify::FourVecv- calcify::ThreeVec
§Example
use calcify::boost;
use calcify::FourVec;
use calcify::ThreeVec;
let vv = ThreeVec::random(100.0);
let vec4 = FourVec::new(10.0,1.0,1.0,1.0);
let bVec = boost(vec4,vv);
assert_eq!(boost(vec4,ThreeVec::new(0.0,0.0,0.0)).unwrap(),vec4);