Class OBBRotList

java.lang.Object
com.hammy275.immersivemc.common.obb.OBBRotList

public class OBBRotList extends Object
  • Method Details

    • addRot

      public OBBRotList addRot(float rot, RotType rotType)
      Add the given rotation to this OBBRotList.
      Parameters:
      rot - Rotation to add.
      rotType - Rotation type to add.
      Returns:
      this.
    • addRot

      public OBBRotList addRot(double rot, RotType rotType)
      Add the given rotation to this OBBRotList.
      Parameters:
      rot - Rotation to add.
      rotType - Rotation type to add.
      Returns:
      this.
    • getRotations

      public List<OBBRot> getRotations()
      Returns:
      A copy of the rotations that make this rotation list.
    • asQuaternion

      public org.joml.Quaternionf asQuaternion()
      Returns:
      This OBBRotList as a Quaternion
    • copy

      public OBBRotList copy()
      Returns:
      A copy of this OBBRotList
    • create

      public static OBBRotList create()
      Creates an OBBRotList with no rotations.
      Returns:
      A new OBBRotList instance.
    • create

      public static OBBRotList create(OBBRot... rotations)
      Creates an OBBRotList with one or more rotations.
      Parameters:
      rotations - One or more non-null rotations to initialize this OBBRotList with.
      Returns:
      A new OBBRotList instance.