Returns a quaternion that aligns the local Z-axis to the given direction via the shortest arc,
then applies an additional twist around that aligned Z-axis.
Note: This aligns the Z axis.
Parameters
direction: readonly[number,number,number]
Target world-space direction for local Z. If zero-length, returns identity.
twistRadians: number = 0
Extra rotation around the aligned Z-axis, in radians. Defaults to 0.
Returns a quaternion that aligns the local Z-axis to the given direction via the shortest arc, then applies an additional twist around that aligned Z-axis.
Note: This aligns the Z axis.