Interface Axis

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Axis
Utility functional interface to convert a rotation amount to a Quaternionf. Commonly represents an axis of rotation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Axis
    Represents the Y axis on the negative side.
    static final Axis
    Represents the X axis on the positive side.
    static final Axis
    Represents the Y axis on the negative side.
    static final Axis
    Represents the Y axis on the positive side.
    static final Axis
    Represents the Z axis on the negative side.
    static final Axis
    Represents the Z axis on the positive side.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Axis
    Creates an axis of rotation from the given Vector3f.
    rotation(float radians)
    Rotates the axis by the given radians.
  • Field Details

    • X_POSITIVE

      static final Axis X_POSITIVE
      Represents the X axis on the positive side.
    • X_NEGATIVE

      static final Axis X_NEGATIVE
      Represents the Y axis on the negative side.
    • Y_POSITIVE

      static final Axis Y_POSITIVE
      Represents the Y axis on the positive side.
    • Y_NEGATIVE

      static final Axis Y_NEGATIVE
      Represents the Y axis on the negative side.
    • Z_POSITIVE

      static final Axis Z_POSITIVE
      Represents the Z axis on the positive side.
    • Z_NEGATIVE

      static final Axis Z_NEGATIVE
      Represents the Z axis on the negative side.
  • Method Details