|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dwvisser.nuclear.Boost
This class handles general boosts from one lorentz frame to another. Instances are created by specifying the relative velocity of the frame to be boosted to.
Constructor Summary | |
Boost(double[] _beta)
Creates a boost given the beta "4-vector" that a boost creates. |
|
Boost(double _beta,
Direction d)
|
|
Boost(double _beta,
double theta,
double phi)
Creates new Boost |
Method Summary | |
double |
calculateGamma(double _beta)
Given a velocity (_beta) in units of c, calculate gamma. |
Boost |
getInverse()
|
static Boost |
inverseBoost(Boost boost)
Creates the boost for a velocity equal in magnitude in the opposite direction from the original boost. |
static void |
main(java.lang.String[] args)
Test code. |
static double[] |
make4Momentum(double KE,
double mass,
double theta,
double phi)
|
java.lang.String |
toString()
|
double[] |
transformVector(double[] fourVector)
Given a proper 4-vector, boost it to the frame indicated at the creation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Boost(double _beta, double theta, double phi)
_beta
- velocity of frame (in units of c)theta
- angle from z axis (in radians)phi
- azimuthal angle (in radians)public Boost(double[] _beta)
_beta
- the array described abovepublic Boost(double _beta, Direction d)
Method Detail |
public static Boost inverseBoost(Boost boost)
boost
- the boost to be inverted
public Boost getInverse()
public double calculateGamma(double _beta)
gamma=[sqrt(1-_beta^2)]^(-1)
_beta
- velocity over c, the speed of light
public double[] transformVector(double[] fourVector) throws MathException
fourVector
- proper special relativistic 4-vector
MathException
- if there's a computation problemBoost
public static double[] make4Momentum(double KE, double mass, double theta, double phi)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |