Class X3dCoordinates

java.lang.Object
edu.nps.moves.dis7.utilities.stream.X3dCoordinates

public class X3dCoordinates extends Object
This class is a holder for coordinates and angles of ESPDUs to store them in HashMaps
Author:
Tobias Brennenstuhl @ NPS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    X3dCoordinates(double x, double y, double z, double phi, double psi, double theta)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    accessor method for angle of rotation
    double
    accessor method for angle of rotation
    double
    accessor method for angle of rotation
    double
    accessor method to get coordinate x value
    double
    accessor method to get coordinate y value
    double
    accessor method to get coordinate z value
    void
    setPhi(double phi)
    accessor method to set angle of rotation
    void
    setPsi(double psi)
    accessor method to set angle of rotation
    void
    setTheta(double theta)
    accessor method to set angle of rotation
    void
    setX(double x)
    accessor method to set coordinate x value
    void
    setY(double y)
    accessor method to set coordinate y value
    void
    setZ(double z)
    accessor method to set coordinate z value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • X3dCoordinates

      public X3dCoordinates()
      Default constructor
    • X3dCoordinates

      public X3dCoordinates(double x, double y, double z, double phi, double psi, double theta)
      Parameters:
      x - coordinate
      y - coordinate
      z - coordinate
      phi - orientation
      psi - orientation
      theta - 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