public class SpacePointVector extends Object implements Serializable, Cloneable
The point and vector stored in a space vector cannot be modified except by assignment from another space vector.
Transformations (translations, rotations, etc) are not provided. It is expected these will be carried out by external functions which return new SpacePointVector objects.
The three orthogonal coordinate systems are defined in the usual way:
|
|
|
|
Modifier and Type | Field and Description |
---|---|
(package private) SpaceVector |
direction |
(package private) SpacePoint |
startPoint |
Constructor and Description |
---|
SpacePointVector() |
SpacePointVector(SpacePoint start,
SpacePoint end) |
SpacePointVector(SpacePoint start,
SpaceVector dir) |
SpacePointVector(SpacePointVector spv)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(SpacePointVector spv) |
SpaceVector |
getDirection() |
SpacePoint |
getEndPoint() |
SpacePoint |
getPointAtLength(double alpha)
The SpacePath can be parametrized by its length.
|
SpacePoint |
getStartPoint() |
double |
magnitude()
magnitude
|
boolean |
notEquals(SpacePointVector spv) |
String |
toString() |
double |
v_phi()
v_phi
|
double |
v_rxy()
v_rxy
|
double |
v_rxyz()
v_rxyz
|
double |
v_theta()
v_theta
|
double |
v_x()
v_x
|
double |
v_y()
v_y
|
double |
v_z()
v_z
|
SpacePoint startPoint
SpaceVector direction
public SpacePointVector()
public SpacePointVector(SpacePointVector spv)
public SpacePointVector(SpacePoint start, SpaceVector dir)
public SpacePointVector(SpacePoint start, SpacePoint end)
public double v_x()
public double v_y()
public double v_z()
public double v_rxy()
public double v_phi()
public double v_rxyz()
public double v_theta()
public double magnitude()
public boolean equals(SpacePointVector spv)
public boolean notEquals(SpacePointVector spv)
spv
- public SpacePoint getStartPoint()
public SpacePoint getEndPoint()
public SpaceVector getDirection()
public SpacePoint getPointAtLength(double alpha)
alpha
- The length parameters. All real values are valid.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.