61 lines
691 B
C
61 lines
691 B
C
//VectorStructure.h
|
|
|
|
#ifndef VectorStructure_H
|
|
#define VectorStructure_H
|
|
|
|
#pragma region VectorStruct
|
|
/*struct Vector3D
|
|
{
|
|
float X;
|
|
float Y;
|
|
float Z;
|
|
|
|
Vector3D()
|
|
{
|
|
X = 0;
|
|
Y = 0;
|
|
Z = 0;
|
|
}
|
|
|
|
Vector3D( float x, float y, float z )
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
Z = z;
|
|
}
|
|
|
|
Vector3D operator* ( Vector3D rhs )
|
|
{
|
|
Vector3D temp;
|
|
temp.X = X * rhs.X;
|
|
temp.Y = Y * rhs.Y;
|
|
temp.Z = Z * rhs.Z;
|
|
return temp;
|
|
}
|
|
|
|
Vector3D operator+ ( Vector3D rhs )
|
|
{
|
|
Vector3D temp;
|
|
temp.X = X + rhs.X;
|
|
temp.Y = Y + rhs.Y;
|
|
temp.Z = Z + rhs.Z;
|
|
return temp;
|
|
}
|
|
};*/
|
|
|
|
struct Vector2D
|
|
{
|
|
float X;
|
|
float Y;
|
|
|
|
Vector2D( float x, float y )
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
};
|
|
#pragma endregion Struct
|
|
|
|
#endif
|
|
|