|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthephysics.vec.SpacePoint
public class SpacePoint
A Hep3Vector representing a point in space. Derived from work by Norman Graf, Jan Strube and Frank Gaede
Nested Class Summary | |
---|---|
static class |
SpacePoint.Representation
|
Constructor Summary | |
---|---|
SpacePoint()
Default constructor. |
|
SpacePoint(Hep3Vector vec)
|
|
SpacePoint(SpacePoint spt)
Copy constructor |
Method Summary | |
---|---|
Object |
clone()
Clone |
double |
cosPhi()
cos(phi) |
double |
cosTheta()
cos(theta) |
static double |
distance(SpacePoint spt1,
SpacePoint spt2)
Return the distance between two space points. |
boolean |
equals(Hep3Vector spt,
double precision)
Tests for equality within errors |
boolean |
equals(SpacePoint x)
Tests for equality |
boolean |
equals(SpacePoint spt,
double precision)
Tests for equality within errors |
double[] |
getCartesianArray()
|
SpacePoint.Representation |
getRepresentation()
|
double |
magnitude()
|
double |
magnitudeSquared()
|
boolean |
notEquals(SpacePoint spt)
Inequality |
double |
phi()
Cylindrical phi |
double |
rxy()
Cylindrical r |
double |
rxyz()
Spherical r |
double |
sinPhi()
sin(phi) |
double |
sinTheta()
sin(theta) |
double |
theta()
Spherical theta |
String |
toString()
Output Stream |
double[] |
v()
Returns the space point as a double array in its internal representation |
double |
x()
Cartesian x |
double |
y()
Cartesian y |
double |
z()
Cartesian z |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpacePoint()
public SpacePoint(SpacePoint spt)
spt
- SpacePoint to copypublic SpacePoint(Hep3Vector vec)
Method Detail |
---|
public double[] v()
getRepresentation()
public double magnitude()
public double magnitudeSquared()
public double x()
public double y()
public double z()
public double rxy()
public double phi()
public double rxyz()
public double theta()
public double cosPhi()
public double sinPhi()
public double sinTheta()
public double cosTheta()
public String toString()
toString
in class Object
public boolean equals(SpacePoint spt, double precision)
spt
- a SpacePoint to compare againstprecision
- the precision of the comparison
public boolean equals(Hep3Vector spt, double precision)
spt
- a Hep3Vector to compare againstprecision
- the precision of the comparison
public boolean equals(SpacePoint x)
x
- SpacePoint to compare
public boolean notEquals(SpacePoint spt)
spt
- SpacePoint to compare
public static double distance(SpacePoint spt1, SpacePoint spt2)
spt1
- SpacePoint 1spt2
- SpacePoint 2
public Object clone()
clone
in class Object
public double[] getCartesianArray()
public SpacePoint.Representation getRepresentation()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |