Package math.matrices

Class RotationMatrix

java.lang.Object
math.matrices.Matrix
math.matrices.RotationMatrix

public class RotationMatrix
extends Matrix
Represents a rotation matrix.
  • Constructor Summary

    Constructors
    Constructor Description
    RotationMatrix​(double pitch, double yaw, double roll)
    Constructs a rotation matrix from the pitch, yaw, and roll.
  • Method Summary

    Methods inherited from class math.matrices.Matrix

    multiply, multiply, multiply, scale, toString

    Methods inherited from class java.lang.Object

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

    • RotationMatrix

      public RotationMatrix​(double pitch, double yaw, double roll)
      Constructs a rotation matrix from the pitch, yaw, and roll.
      Parameters:
      pitch - The angle in radians to rotate about the left-right axis.
      yaw - The angle in radians to rotate about the up-down axis.
      roll - The angle in radians to rotate about the front-back axis.