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 TypeMethodDescriptiondouble
getPhi()
accessor method for angle of rotationdouble
getPsi()
accessor method for angle of rotationdouble
getTheta()
accessor method for angle of rotationdouble
getX()
accessor method to get coordinate x valuedouble
getY()
accessor method to get coordinate y valuedouble
getZ()
accessor method to get coordinate z valuevoid
setPhi
(double phi) accessor method to set angle of rotationvoid
setPsi
(double psi) accessor method to set angle of rotationvoid
setTheta
(double theta) accessor method to set angle of rotationvoid
setX
(double x) accessor method to set coordinate x valuevoid
setY
(double y) accessor method to set coordinate y valuevoid
setZ
(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
-