RayTracing
Vector3D.h
См. документацию.
00001 #ifndef VECTOR3D_H
00002 #define VECTOR3D_H
00003 
00009 class Vector3D
00010 {
00011 public:
00013         float X;
00015         float Y;
00017         float Z;
00018 
00020         Vector3D();
00022         Vector3D(const float x, const float y, const float z);
00024         Vector3D(const Vector3D &V);
00026         ~Vector3D();
00027 
00031         Vector3D operator+ (const Vector3D &V);
00035         Vector3D operator+= (const Vector3D &V);
00039         Vector3D operator* (const float t);
00043         Vector3D operator- (const Vector3D &V);
00046         Vector3D operator- ();
00050         float operator* (Vector3D &V);
00053         float Length();
00056         float SqrLen();
00059         Vector3D NormVect();
00060 
00061 };
00062 
00063 #endif // VECTOR3D_H