Table of Contents

Method b3GetAxisAngle

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3GetAxisAngle(out float, Quaternion)

Extracts the axis and angle of a rotation.

public static Vector3 b3GetAxisAngle(out float radians, Quaternion q)

Parameters

radians float

Receives the rotation angle in radians.

q Quaternion

The rotation, which is assumed to be normalized.

Returns

Vector3

The rotation axis, or the zero vector for the identity rotation.