Contents
Interface Rotation3fc
- All Known Implementing Classes:
Rotation3f
public interface Rotation3fc
Interface to a read-only view of a 3-dimensional Euler rotation with single-precision floating point components.
-
Method Summary
Modifier and TypeMethodDescriptionorg.joml.QuaterniondgetQuaternion(org.joml.Quaterniond dest) Get the rotation represented bythisrotation and stores it into the givenQuaterniond.mul(org.joml.Quaterniondc q, Rotation3f dest) Rotate these Euler angles byqand store the result indest.floatpitch()premul(org.joml.Quaterniondc q, Rotation3f dest) Pre-rotate these Euler angles byqand store the result indest.floatroll()org.joml.Vector3dtransform(org.joml.Vector3d vec) Transform the given vector by this rotation.org.joml.Vector3dtransform(org.joml.Vector3dc vec, org.joml.Vector3d dest) Transform the given vector by this rotation and store the result indest.floatx()floaty()floatyaw()floatz()
-
Method Details
-
x
float x()- Returns:
- the X, or pitch component of the rotation.
-
pitch
float pitch()- Returns:
- the pitch component of the rotation.
-
y
float y()- Returns:
- the Y, or yaw component of the rotation.
-
yaw
float yaw()- Returns:
- the yaw component of the rotation.
-
z
float z()- Returns:
- the Z, or roll component of the rotation.
-
roll
float roll()- Returns:
- the roll component of the rotation.
-
getQuaternion
org.joml.Quaterniond getQuaternion(org.joml.Quaterniond dest) Get the rotation represented bythisrotation and stores it into the givenQuaterniond.- Parameters:
dest- the destinationQuaterniond- Returns:
- the passed in destination
-
premul
Pre-rotate these Euler angles byqand store the result indest.If
TisthisandQis the given quaternion, then the resulting quaternionRis:R = Q * T- Parameters:
q- the quaternion to pre-multiplythisbydest- will hold the result- Returns:
- dest
-
mul
Rotate these Euler angles byqand store the result indest.If
TisthisandQis the given quaternion, then the resulting quaternionRis:R = T * Q- Parameters:
q- the quaternion to multiplythisbydest- will hold the result- Returns:
- dest
-
transform
org.joml.Vector3d transform(org.joml.Vector3dc vec, org.joml.Vector3d dest) Transform the given vector by this rotation and store the result indest.This will apply the rotation described by this to the given vector.
- Parameters:
vec- the vector to transformdest- will hold the result- Returns:
- dest
-
transform
org.joml.Vector3d transform(org.joml.Vector3d vec) Transform the given vector by this rotation.This will apply the rotation described by this to the given vector.
- Parameters:
vec- the vector to transform- Returns:
- vec
-