Class OBBRotList
java.lang.Object
com.hammy275.immersivemc.common.obb.OBBRotList
-
Method Summary
Modifier and TypeMethodDescriptionAdd the given rotation to this OBBRotList.Add the given rotation to this OBBRotList.org.joml.Quaternionfcopy()static OBBRotListcreate()Creates an OBBRotList with no rotations.static OBBRotListCreates an OBBRotList with one or more rotations.
-
Method Details
-
addRot
Add the given rotation to this OBBRotList.- Parameters:
rot- Rotation to add.rotType- Rotation type to add.- Returns:
- this.
-
addRot
Add the given rotation to this OBBRotList.- Parameters:
rot- Rotation to add.rotType- Rotation type to add.- Returns:
- this.
-
getRotations
- Returns:
- A copy of the rotations that make this rotation list.
-
asQuaternion
public org.joml.Quaternionf asQuaternion()- Returns:
- This
OBBRotListas a Quaternion
-
copy
- Returns:
- A copy of this OBBRotList
-
create
Creates an OBBRotList with no rotations.- Returns:
- A new OBBRotList instance.
-
create
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.
-