|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.physics.vec.BasicHep3Vector
Basic implementation of a Hep3Vector
| Constructor Summary | |
BasicHep3Vector()
|
|
BasicHep3Vector(double[] d)
Create a BasicHep3Vector from a double array |
|
BasicHep3Vector(double dx,
double dy,
double dz)
|
|
BasicHep3Vector(float[] f)
|
|
| Method Summary | |
boolean |
equals(Object obj)
|
int |
hashCode()
|
double |
magnitude()
The length of the 3-vector. |
double |
magnitudeSquared()
The square of the length |
void |
setV(double dx,
double dy,
double dz)
|
String |
toString()
|
double[] |
v()
|
double |
x()
|
double |
y()
|
double |
z()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicHep3Vector()
public BasicHep3Vector(double dx,
double dy,
double dz)
public BasicHep3Vector(double[] d)
d - An array {x,y,z}public BasicHep3Vector(float[] f)
| Method Detail |
public void setV(double dx,
double dy,
double dz)
public double x()
x in interface Hep3Vectorpublic double y()
y in interface Hep3Vectorpublic double z()
z in interface Hep3Vectorpublic double magnitude()
Hep3Vector
magnitude in interface Hep3Vectorpublic double magnitudeSquared()
Hep3Vector
magnitudeSquared in interface Hep3Vectorpublic double[] v()
v in interface Hep3Vectorpublic boolean equals(Object obj)
public String toString()
public int hashCode()
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||