Class Rotation


  • @Node
    public class Rotation
    extends Embedded
    Rotation of an can be represented either by 3 or 4 coordinates (euler angles, quaternions), the server will store and distribute it either way.
    Author:
    joe
    • Field Detail

      • x

        public double x
      • y

        public double y
      • z

        public double z
      • angle

        public double angle
    • Constructor Detail

      • Rotation

        public Rotation​(double x,
                        double y,
                        double z)
      • Rotation

        public Rotation()
      • Rotation

        public Rotation​(double x,
                        double y,
                        double z,
                        double angle)
    • Method Detail

      • getX

        public double getX()
      • getY

        public double getY()
      • getZ

        public double getZ()
      • getAngle

        public double getAngle()
      • setX

        public void setX​(double x)
      • setY

        public void setY​(double y)
      • setZ

        public void setZ​(double z)
      • setAngle

        public void setAngle​(double angle)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Entity