00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010 #import "O3D_Util.h"
00011
00012 @class O3D_Vector3;
00013 @class O3D_Vector4;
00014
00016 @interface O3D_Matrix : NSObject {
00018 float * data;
00019 }
00020
00021 @property (nonatomic) float * data;
00022
00024 - (id) initWithIdentity;
00026 - (id) initWithMatrix:(O3D_Matrix *)matrix;
00028 - (id) initWithPositionVector4:(O3D_Vector4 *)vector;
00029
00031 + (O3D_Matrix *) matrixWithPositionVector4:(O3D_Vector4 *)vector;
00032
00034 - (void) multiplyByMatrix:(O3D_Matrix *)matrix;
00036 - (void) rotateOnAxis:(O3D_Vector3 *)axis withAngle:(float)angle;
00038 - (void) transpose;
00039
00040 @end