public class SpacePoint extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
SpacePoint.Representation |
Constructor and Description |
---|
SpacePoint()
Default constructor.
|
SpacePoint(Hep3Vector vec) |
SpacePoint(SpacePoint spt)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public SpacePoint()
public SpacePoint(SpacePoint spt)
spt
- SpacePoint to copypublic SpacePoint(Hep3Vector vec)
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()
public boolean equals(SpacePoint spt, double precision)
spt
- a SpacePoint to compare againstprecision
- the precision of the comparisonpublic boolean equals(Hep3Vector spt, double precision)
spt
- a Hep3Vector to compare againstprecision
- the precision of the comparisonpublic boolean equals(SpacePoint x)
x
- SpacePoint to comparepublic boolean notEquals(SpacePoint spt)
spt
- SpacePoint to comparepublic static double distance(SpacePoint spt1, SpacePoint spt2)
spt1
- SpacePoint 1spt2
- SpacePoint 2public double[] getCartesianArray()
public SpacePoint.Representation getRepresentation()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics