34 |
float _x, _y, _z, _w; |
float _x, _y, _z, _w; |
35 |
} |
} |
36 |
|
|
37 |
|
+ (id) quaternionWithValuesX: (float)x |
38 |
|
Y: (float)y |
39 |
|
Z: (float)z |
40 |
|
W: (float)w; |
41 |
|
+ (id) quaternionWithRotation: (Matrix)rotation; |
42 |
|
|
43 |
- (id) initWithValuesX: (float)x |
- (id) initWithValuesX: (float)x |
44 |
Y: (float)y |
Y: (float)y |
45 |
Z: (float)z |
Z: (float)z |
47 |
- (id) initWithRotation: (Matrix)rotation; |
- (id) initWithRotation: (Matrix)rotation; |
48 |
|
|
49 |
- (void) convertToRotation: (Matrix)rotation; |
- (void) convertToRotation: (Matrix)rotation; |
50 |
|
|
51 |
|
- (float) x; |
52 |
|
- (float) y; |
53 |
|
- (float) z; |
54 |
|
- (float) w; |
55 |
|
|
56 |
- (void) slerp: (Quaternion *)q1 |
- (void) slerp: (Quaternion *)q1 |
57 |
with: (Quaternion *)q2 |
with: (Quaternion *)q2 |
58 |
accordingTime: (float)t; |
accordingTime: (float)t; |