00001 #import <Cocoa/Cocoa.h>
00002
00009 @interface Matrix4x4 : NSObject {
00010 GLfloat values[16];
00011 }
00012
00016 + (Matrix4x4 *) createEmptyMatrix;
00020 - (id) initEmptyMatrix;
00021
00025 + (Matrix4x4 *) createWithMatrix: (Matrix4x4 *) matrix;
00029 - (id) initWithMatrix: (Matrix4x4 *) matrix;
00030
00035 - (void) setRotateX: (float) angle;
00040 - (void) setRotateY: (float) angle;
00045 - (void) setRotateZ: (float) angle;
00046
00052 - (void) leftMult: (Matrix4x4 *) left;
00057 - (float *) getValues;
00058
00064 - (void) transform: (float*) vector;
00065
00069 - (void) scaleX: (float) xScale Y: (float) yScale Z: (float) zScale;
00070
00074 - (void) translateX: (float) dx Y: (float) dy Z: (float) dz;
00075
00076 @end