Package me.c7dev.dexterity.util
Class AxisPair
java.lang.Object
me.c7dev.dexterity.util.AxisPair
Used to calculate the new yaw, pitch, and roll of a DexBlock in a rotation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.VectorgetAxis1()Get the vector used to calculate yaw and pitchorg.bukkit.util.VectorgetAxis2()Get the vector used to calculate rollorg.bukkit.util.VectorReturns a vector holding the pitch (x), yaw (y), and roll (z) in degreesvoidvoidhighlight(org.bukkit.Location loc, DexterityAPI api, double seconds) voidtransform(org.joml.Quaterniond q1)
-
Field Details
-
PI2
public static double PI2
-
-
Constructor Details
-
AxisPair
public AxisPair() -
AxisPair
-
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
-
highlight
-
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:
-