Interface RotationMatrixDirection

All Known Implementing Classes:
CamToWorldDirection, WorldToCamDirection

public sealed interface RotationMatrixDirection permits CamToWorldDirection, WorldToCamDirection
Defines the contract for generating individual rotation matrices for pitch, yaw, and roll.

This interface allows for different implementations of rotation logic, such as converting from camera space to world space or vice-versa. By separating the creation of each rotation matrix, it provides fine-grained control over how transformations are constructed.

Author:
Lehlogonolo Poole
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Creates a rotation matrix for pitch (rotation around the X-axis).
    Creates a rotation matrix for roll (rotation around the Z-axis).
    Creates a rotation matrix for yaw (rotation around the Y-axis).
  • Method Details

    • rotPitch

      @NotNull @Contract(value=" -> new", pure=true) Matrix3 rotPitch()
      Creates a rotation matrix for pitch (rotation around the X-axis).
      Returns:
      A Matrix3 representing the pitch rotation.
    • rotYaw

      @NotNull @Contract(value=" -> new", pure=true) Matrix3 rotYaw()
      Creates a rotation matrix for yaw (rotation around the Y-axis).
      Returns:
      A Matrix3 representing the yaw rotation.
    • rotRoll

      @NotNull @Contract(value=" -> new", pure=true) Matrix3 rotRoll()
      Creates a rotation matrix for roll (rotation around the Z-axis).
      Returns:
      A Matrix3 representing the roll rotation.
    • matrix

      @NotNull @Contract(value=" -> new", pure=true) Matrix3 matrix()