fromEuler

fun fromEuler(result: ZQuaternion, euler: ZEuler)(source)

Converts Euler angles to quaternion using ZYX (yaw-pitch-roll) convention.

Parameters

result

The quaternion to store the result in

euler

The Euler angles to convert from




fun fromEuler(roll: Float, pitch: Float, yaw: Float): ZQuaternion(source)

Creates a new quaternion from Euler angles.

Return

A new quaternion representing the rotation

Parameters

roll

Rotation around X axis

pitch

Rotation around Y axis

yaw

Rotation around Z axis