|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.physics.vec.BasicHep3Vector
public class 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(java.lang.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)
|
java.lang.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 Hep3Vector
public double y()
y
in interface Hep3Vector
public double z()
z
in interface Hep3Vector
public double magnitude()
Hep3Vector
magnitude
in interface Hep3Vector
public double magnitudeSquared()
Hep3Vector
magnitudeSquared
in interface Hep3Vector
public double[] v()
v
in interface Hep3Vector
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |