/[hegemonie]/hegemonie/Headers/Common/Quaternion.h
ViewVC logotype

Diff of /hegemonie/Headers/Common/Quaternion.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by c-leo, Mon Jun 30 15:55:35 2003 UTC revision 1.2 by dam, Fri Jul 25 21:04:43 2003 UTC
# Line 26  Line 26 
26    
27  #include <Foundation/NSObject.h>  #include <Foundation/NSObject.h>
28    
29    typedef float Matrix[4*4];
30    
31  @interface Quaternion: NSObject  @interface Quaternion: NSObject
32  {  {
33  @private  @private
34    float _x, _y, _z, _w;    float  _x, _y, _z, _w;
   float *_matrix;  
35  }  }
36    
37  - (id) init;  - (id) initWithValuesX: (float)x
38  - (void) dealloc;                       Y: (float)y
39                         Z: (float)z
40  - (id) initWithValuesX: (float) x                       W: (float)w;
41                       Y: (float) y  - (id) initWithRotation: (Matrix)rotation;
42                       Z: (float) z  
43                       W: (float) w;  - (void) convertToRotation: (Matrix)rotation;
44  - (id) initWithMatrix: (float *)matrix; /* 4x4 matrix */  - (void)   slerp: (Quaternion *)q1
45                with: (Quaternion *)q2
46  - (float *) createMatrix;     accordingTime: (float)t;
 - (void)   slerp: (Quaternion *) q1  
             with: (Quaternion *) q2  
    accordingTime: (float) t;  
47    
48  - (BOOL) isEqual: (Quaternion *) quat;  - (BOOL) isEqual: (Quaternion *)quat;
49    - (void) negate;
50    
51  @end  @end
52    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26