|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.physics.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 | |
---|---|
java.lang.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()
The length of the 3-vector. |
double |
magnitudeSquared()
The square of the length |
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 |
java.lang.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, finalize, 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()
v
in interface Hep3Vector
getRepresentation()
public double magnitude()
Hep3Vector
magnitude
in interface Hep3Vector
public double magnitudeSquared()
Hep3Vector
magnitudeSquared
in interface Hep3Vector
public double x()
x
in interface Hep3Vector
public double y()
y
in interface Hep3Vector
public double z()
z
in interface Hep3Vector
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 java.lang.String toString()
toString
in class java.lang.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 java.lang.Object clone()
clone
in class java.lang.Object
public double[] getCartesianArray()
public SpacePoint.Representation getRepresentation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |