Package org.alban098.common
Class TransformUtils
java.lang.Object
org.alban098.common.TransformUtils
Just a utility class to help with transformation matrix manipulation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TransformA constant representing an empty Transform -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAn empty private constructor to block instantiation -
Method Summary
Modifier and TypeMethodDescriptionstatic FloatBufferReturns aFloatBuffercontaining a transformation matrix that does not change an Entitystatic floatgetRotationZ(org.joml.Matrix4f matrix) Returns the angle of rotation around the Z axis of a transformation matrix in radians
-
Field Details
-
NULL_TRANSFORM
A constant representing an empty Transform
-
-
Constructor Details
-
TransformUtils
private TransformUtils()An empty private constructor to block instantiation
-
-
Method Details
-
getNullTransformBuffer
Returns aFloatBuffercontaining a transformation matrix that does not change an Entity- Returns:
- a
FloatBuffercontaining a transformation matrix that does not change an Entity
-
getRotationZ
public static float getRotationZ(org.joml.Matrix4f matrix) Returns the angle of rotation around the Z axis of a transformation matrix in radians- Parameters:
matrix- the matrix to extract from- Returns:
- the angle of rotation around the Z axis of a transformation matrix in radians
-