Fixing the angle ordering in the fromAngles() javadoc.

This commit is contained in:
pspeed42 2020-05-23 17:39:07 -04:00
parent acc5cfa995
commit d29d8f5100

View File

@ -263,7 +263,7 @@ public final class Quaternion implements Savable, Cloneable, java.io.Serializabl
/** /**
* <code>fromAngles</code> builds a Quaternion from the Euler rotation * <code>fromAngles</code> builds a Quaternion from the Euler rotation
* angles (x,y,z) aka (pitch, yaw, roll)). * angles (x,y,z) aka (pitch, yaw, roll)).
* Note that we are applying in order: (y, z, x) aka (yaw, roll, pitch) * Note that we are applying in order: (y, x, z) aka (yaw, pitch, roll)
* but we've ordered them in x, y, and z for convenience. * but we've ordered them in x, y, and z for convenience.
* *
* @see <a href="http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToQuaternion/index.htm">http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToQuaternion/index.htm</a> * @see <a href="http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToQuaternion/index.htm">http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToQuaternion/index.htm</a>