public class BasicHep3Vector extends Object implements Hep3Vector, Serializable
Constructor and Description |
---|
BasicHep3Vector() |
BasicHep3Vector(double[] d)
Create a BasicHep3Vector from a double array
|
BasicHep3Vector(double dx,
double dy,
double dz) |
BasicHep3Vector(float[] f) |
Modifier and Type | Method and Description |
---|---|
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() |
public BasicHep3Vector()
public BasicHep3Vector(double dx, double dy, double dz)
public BasicHep3Vector(double[] d)
d
- An array {x,y,z}public BasicHep3Vector(float[] f)
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
Jas4pp 1.5 © Java Analysis Studio for Particle Physics