Interface RotationMatrixDirection

All Known Implementing Classes:
CamToWorldDirection, WorldToCamDirection

public interface RotationMatrixDirection
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

      Matrix3 rotPitch()
      Creates a rotation matrix for pitch (rotation around the X-axis).
      Returns:
      A Matrix3 representing the pitch rotation.
    • rotYaw

      Matrix3 rotYaw()
      Creates a rotation matrix for yaw (rotation around the Y-axis).
      Returns:
      A Matrix3 representing the yaw rotation.
    • rotRoll

      Matrix3 rotRoll()
      Creates a rotation matrix for roll (rotation around the Z-axis).
      Returns:
      A Matrix3 representing the roll rotation.
    • matrix

      Matrix3 matrix()