Go to the documentation of this file.00001 #pragma once
00002 #include "stdafx.h"
00003 #include "types.h"
00004
00005 class UtilityBox
00006 {
00007 public:
00008 UtilityBox(void);
00009 ~UtilityBox(void);
00010 float nextFloatFromString(char *, int&);
00011 int trimString(char *);
00012 int trimStringRight(char *);
00013 int firstWord(char *, int &, char *);
00014 void crossProduct(float[3],float[3], float[3]);
00015 float dotProduct(float[3], float[3]);
00016 void setRotateX (float m[4][4], float alpha);
00017 void setRotateY (float m[4][4], float alpha);
00018 void setRotateZ (float m[4][4], float alpha);
00019 void transformVector(float in[4], float m[4][4], float out[4]);
00020 void transformVector16(float in[4], float m[16], float out[4]);
00021 void leftMultiply(float[4][4], float[4][4], float[4][4]);
00022 void rightMultiply(float[4][4], float[4][4], float[4][4]);
00023 void setTranslate(float[4][4], float, float, float);
00024 void copyMatrix(float[4][4], float[4][4]);
00025 void transposeMatrix(float[4][4]);
00026 void normalizeVector(float[4]);
00027 bool testMatrix(void);
00028 void setScale (float m[4][4], float sx, float sy, float sz);
00029 void multMatrix(float [4][4], float [4][4]);
00030 void setIdentity(float [4][4]);
00031 void copyVector(float[4], float[4]);
00032 void calculateNormal(float[3], float[3], float[3], float[3]);
00033 int getpart(char * str, char * result, int &pos);
00034 int countslash(char *str);
00035 int getval(char *str, char *res, int &pos);
00036 vec3f transformVector(vec3f v3f, Matrix16 m16);
00037
00038 int trimleft(char *);
00039
00040 };