Class AxisPair

java.lang.Object
me.c7dev.dexterity.util.AxisPair

public class AxisPair extends Object
Used to calculate the new yaw, pitch, and roll of a DexBlock in a rotation
  • Field Details

    • PI2

      public static double PI2
  • Constructor Details

    • AxisPair

      public AxisPair()
    • AxisPair

      public AxisPair(DexBlock db)
    • AxisPair

      public AxisPair(double yaw, double pitch, double roll)
    • AxisPair

      public AxisPair(Vector x, Vector z)
  • Method Details

    • highlight

      public void highlight(DexBlock db, double seconds)
    • highlight

      public void highlight(Location loc, DexterityAPI api, double seconds)
    • transform

      public void transform(org.joml.Quaterniond q1)
    • getAxis1

      public Vector getAxis1()
      Get the vector used to calculate yaw and pitch
      Returns:
    • getAxis2

      public Vector getAxis2()
      Get the vector used to calculate roll
      Returns:
    • getPitchYawRoll

      public Vector getPitchYawRoll()
      Returns a vector holding the pitch (x), yaw (y), and roll (z) in degrees
      Returns: