Revision a733dd00 include/maths.h
| b/include/maths.h | ||
|---|---|---|
| 444 | 444 |
x(_x), y(_y), z(_z), w(_w) |
| 445 | 445 |
{}
|
| 446 | 446 |
void ToAxis(Vector3 &axis, double angle){
|
| 447 |
(void) angle; |
|
| 447 | 448 |
Quaternion q=(*this).Norm(); |
| 448 | 449 |
angle=acosf(q.w)*2.0f /*TO_RADIANS*/; |
| 449 | 450 |
double sa=1.0f/sqrtf(1.0f-q.w*q.w); |
Also available in: Unified diff