First commit
This commit is contained in:
commit
4d4b12e6b3
72 files changed
+1481
No files matched your search
@@ -0,0 +1,60 @@
|
||||
//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
|
||||
|
||||
Reference in new issue
Block a user