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 TypeMethodDescriptiongetAxis1()
Get the vector used to calculate yaw and pitchgetAxis2()
Get the vector used to calculate rollReturns a vector holding the pitch (x), yaw (y), and roll (z) in degreesvoid
void
highlight
(Location loc, DexterityAPI api, double seconds) void
transform
(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
-
-
Method Details
-
highlight
-
highlight
-
transform
public void transform(org.joml.Quaterniond q1) -
getAxis1
-
getAxis2
-
getPitchYawRoll
Returns a vector holding the pitch (x), yaw (y), and roll (z) in degrees- Returns:
-