Class X3dCoordinates
java.lang.Object
edu.nps.moves.dis7.utilities.stream.X3dCoordinates
This class is a holder for coordinates and angles of ESPDUs to store them in
HashMaps
- Author:
- Tobias Brennenstuhl @ NPS
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorX3dCoordinates(double x, double y, double z, double phi, double psi, double theta) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetPhi()accessor method for angle of rotationdoublegetPsi()accessor method for angle of rotationdoublegetTheta()accessor method for angle of rotationdoublegetX()accessor method to get coordinate x valuedoublegetY()accessor method to get coordinate y valuedoublegetZ()accessor method to get coordinate z valuevoidsetPhi(double phi)accessor method to set angle of rotationvoidsetPsi(double psi)accessor method to set angle of rotationvoidsetTheta(double theta)accessor method to set angle of rotationvoidsetX(double x)accessor method to set coordinate x valuevoidsetY(double y)accessor method to set coordinate y valuevoidsetZ(double z)accessor method to set coordinate z value
-
Constructor Details
-
X3dCoordinates
public X3dCoordinates()Default constructor -
X3dCoordinates
public X3dCoordinates(double x, double y, double z, double phi, double psi, double theta)- Parameters:
x- coordinatey- coordinatez- coordinatephi- orientationpsi- orientationtheta- orientation
-
-
Method Details
-
getPhi
public double getPhi()accessor method for angle of rotation- Returns:
- current value
-
setPhi
public void setPhi(double phi)accessor method to set angle of rotation- Parameters:
phi- new angle value
-
getPsi
public double getPsi()accessor method for angle of rotation- Returns:
- current value
-
setPsi
public void setPsi(double psi)accessor method to set angle of rotation- Parameters:
psi- new angle value
-
getTheta
public double getTheta()accessor method for angle of rotation- Returns:
- current value
-
setTheta
public void setTheta(double theta)accessor method to set angle of rotation- Parameters:
theta- new angle value
-
getX
public double getX()accessor method to get coordinate x value- Returns:
- current value
-
setX
public void setX(double x)accessor method to set coordinate x value- Parameters:
x- coordinate value to set
-
getY
public double getY()accessor method to get coordinate y value- Returns:
- current value
-
setY
public void setY(double y)accessor method to set coordinate y value- Parameters:
y- coordinate value to set
-
getZ
public double getZ()accessor method to get coordinate z value- Returns:
- current value
-
setZ
public void setZ(double z)accessor method to set coordinate z value- Parameters:
z- coordinate value to set
-