Vec3:rotate
EditApplies a rotation to the vector, using a Quat
or an angle/axis rotation.
Arguments
Name | Type | Description |
q | Quat | The quaternion to apply. |
Returns
Name | Type | Description |
self | Vec3 | The modified vector. |
Arguments
Name | Type | Description |
angle | number | The number of radians to rotate. |
ax | number | The x component of the axis to rotate around. |
ay | number | The y component of the axis to rotate around. |
az | number | The z component of the axis to rotate around. |
Returns
Name | Type | Description |
self | Vec3 | The modified vector. |