Class Transformation

java.lang.Object
org.bukkit.util.Transformation

public class Transformation extends Object
Represents an arbitrary affine transformation.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Transformation(org.joml.Vector3f translation, org.joml.AxisAngle4f leftRotation, org.joml.Vector3f scale, org.joml.AxisAngle4f rightRotation)
     
    Transformation(org.joml.Vector3f translation, org.joml.Quaternionf leftRotation, org.joml.Vector3f scale, org.joml.Quaternionf rightRotation)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
     
    org.joml.Quaternionf
    Gets the left rotation component of this transformation.
    org.joml.Quaternionf
    Gets the right rotation component of this transformation.
    org.joml.Vector3f
    Gets the scale component of this transformation.
    org.joml.Vector3f
    Gets the translation component of this transformation.
    int
     
     

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • Transformation Link icon

      public Transformation(@NotNull org.joml.Vector3f translation, @NotNull org.joml.AxisAngle4f leftRotation, @NotNull org.joml.Vector3f scale, @NotNull org.joml.AxisAngle4f rightRotation)
    • Transformation Link icon

      public Transformation(@NotNull org.joml.Vector3f translation, @NotNull org.joml.Quaternionf leftRotation, @NotNull org.joml.Vector3f scale, @NotNull org.joml.Quaternionf rightRotation)
  • Method Details Link icon

    • getTranslation Link icon

      @NotNull public org.joml.Vector3f getTranslation()
      Gets the translation component of this transformation.
      Returns:
      translation component
    • getLeftRotation Link icon

      @NotNull public org.joml.Quaternionf getLeftRotation()
      Gets the left rotation component of this transformation.
      Returns:
      left rotation component
    • getScale Link icon

      @NotNull public org.joml.Vector3f getScale()
      Gets the scale component of this transformation.
      Returns:
      scale component
    • getRightRotation Link icon

      @NotNull public org.joml.Quaternionf getRightRotation()
      Gets the right rotation component of this transformation.
      Returns:
      right rotation component
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object