Package com.hypixel.hytale.math.vector
Class Transform
java.lang.Object
com.hypixel.hytale.math.vector.Transform
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<Transform> static final BuilderCodec<Transform> static final intprotected Vector3dstatic final intstatic final intprotected Vector3fstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyMaskedRelativeTransform(Transform transform, byte relativeMask, Vector3d sourcePosition, Vector3f sourceRotation, Vector3i blockPosition) voidclone()booleangetAxis()getAxisDirection(float pitch, float yaw) static Vector3dgetDirection(float pitch, float yaw) inthashCode()voidsetPosition(Vector3d position) voidsetRotation(Vector3f rotation) toString()
-
Field Details
-
CODEC
-
CODEC_DEGREES
-
position
-
rotation
-
X_IS_RELATIVE
public static final int X_IS_RELATIVE- See Also:
-
Y_IS_RELATIVE
public static final int Y_IS_RELATIVE- See Also:
-
Z_IS_RELATIVE
public static final int Z_IS_RELATIVE- See Also:
-
YAW_IS_RELATIVE
public static final int YAW_IS_RELATIVE- See Also:
-
PITCH_IS_RELATIVE
public static final int PITCH_IS_RELATIVE- See Also:
-
ROLL_IS_RELATIVE
public static final int ROLL_IS_RELATIVE- See Also:
-
RELATIVE_TO_BLOCK
public static final int RELATIVE_TO_BLOCK- See Also:
-
-
Constructor Details
-
Transform
public Transform() -
Transform
-
Transform
-
Transform
public Transform(double x, double y, double z) -
Transform
public Transform(double x, double y, double z, float pitch, float yaw, float roll) -
Transform
-
-
Method Details
-
assign
-
getPosition
-
setPosition
-
getRotation
-
setRotation
-
getDirection
-
getDirection
-
getAxisDirection
-
getAxisDirection
-
getAxis
-
clone
-
equals
-
hashCode
public int hashCode() -
toString
-
applyMaskedRelativeTransform
-