Package georegression.struct.so
Class Quaternion_F64
java.lang.Object
georegression.struct.so.Quaternion_F64
- All Implemented Interfaces:
Serializable
Specifies a 3D rotation using a quaternion. q = w + x*i + y*j + z*k, where (w,x,y,z) are the parameters of the quaternion and (i,j,k) are unit vectors representing the Cartesian axis.
If the quaternion is a unit quaternion then the following is true:
q = cos(theta/2) + (x*i + y*j + z*k)*sin(theta/2)
where 'theta' is the angle of rotation, (x,y,z) is the unit axis of rotation.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts the quaternion into a unit quaternion.setTo
(double w, double x, double y, double z) setTo
(Quaternion_F64 quaternion) toString()
-
Field Details
-
w
public double wDescribes the angle of rotation. See above for how it is encoded. -
x
public double xAxis of rotation -
y
public double yAxis of rotation -
z
public double zAxis of rotation
-
-
Constructor Details
-
Quaternion_F64
public Quaternion_F64() -
Quaternion_F64
public Quaternion_F64(double w, double x, double y, double z)
-
-
Method Details