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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AxisPair(double yaw, double pitch, double roll)
     
     
    AxisPair(org.bukkit.util.Vector x, org.bukkit.util.Vector z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.util.Vector
    Get the vector used to calculate yaw and pitch
    org.bukkit.util.Vector
    Get the vector used to calculate roll
    org.bukkit.util.Vector
    Returns a vector holding the pitch (x), yaw (y), and roll (z) in degrees
    void
    highlight(DexBlock db, double seconds)
     
    void
    highlight(org.bukkit.Location loc, DexterityAPI api, double seconds)
     
    void
    transform(org.joml.Quaterniond q1)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(org.bukkit.util.Vector x, org.bukkit.util.Vector z)
  • Method Details

    • highlight

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

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

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

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

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

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