Class Transformation

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

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

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

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

    Methods inherited from class java.lang.Object

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

    • Transformation

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

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

    • getTranslation

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

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object