00001 #ifndef TRANSFORM_H
00002 #define TRANSFORM_H
00003
00004 #include "global.h"
00005
00006
00007 REAL Norm(Point &p);
00008 REAL Norm2(Point &p);
00009
00010 REAL Distance(Point &p1,Point &p2);
00011 REAL Distance2(Point &p1,Point &p2);
00012
00013
00014 void MultiplyMatrix3x3(Matrix3x3 &A,Matrix3x3 &B,Matrix3x3 &T);
00015 void MultiplyMatrix3x3Vector(Matrix3x3 &M, Point &p, Point &r);
00016
00017 REAL ScalarProduct(Point &p1, Point &p2);
00018
00019 REAL GetAngle(Point &p1, Point &p2);
00020 REAL GetCosAngle(Point &p1, Point &p2);
00021
00022 void PrintMatrix3x3(Matrix3x3 T);
00023
00024 void VectorMultiply(Point &p1, Point &p2, Point &r);
00025
00026 void CreateRotateXMatrix3x3(Matrix3x3 &M, REAL alpha);
00027 void CreateRotateYMatrix3x3(Matrix3x3 &M, REAL beta);
00028 void CreateRotateZMatrix3x3(Matrix3x3 &M, REAL gamma);
00029
00030
00031 #endif