Bug fixes / Remove unecessary code.
This commit is contained in:
parent
62e60cdb81
commit
a2c176750d
@ -20,11 +20,11 @@
|
||||
#ifndef INTVECTOR2_H
|
||||
#define INTVECTOR2_H
|
||||
|
||||
#define PIntZeroVector2(type) TIntVector2<##type>(0,0)
|
||||
#define PIntVectorSouth2(type) TIntVector2<##type>(0,-1)
|
||||
#define PIntVectorNorth2(type) TIntVector2<##type>(0,1)
|
||||
#define PIntVectorEast2(type) TIntVector2<##type>(1,0)
|
||||
#define PIntVectorWest2(type) TIntVector2<##type>(-1,0)
|
||||
#define PIntZeroVector2(type, aligned) TIntVector2<##type, ##aligned>(0,0)
|
||||
#define PIntVectorSouth2(type, aligned) TIntVector2<##type, ##aligned>(0,-1)
|
||||
#define PIntVectorNorth2(type, aligned) TIntVector2<##type, ##aligned>(0,1)
|
||||
#define PIntVectorEast2(type, aligned) TIntVector2<##type, ##aligned>(1,0)
|
||||
#define PIntVectorWest2(type, aligned) TIntVector2<##type, ##aligned>(-1,0)
|
||||
|
||||
|
||||
namespace Phanes::Core::Math {
|
||||
@ -36,8 +36,6 @@ namespace Phanes::Core::Math {
|
||||
template<IntType T, bool A>
|
||||
struct TIntVector2 {
|
||||
|
||||
static_assert(std::is_integral_v<T>, "T must be an integer type.");
|
||||
|
||||
public:
|
||||
|
||||
// Using in combination with a struct and an array allows us the reflect changes of the x and y variables in the comp array and vise versa.
|
||||
|
@ -16,11 +16,11 @@
|
||||
#ifndef VECTOR2_H
|
||||
#define VECTOR2_H
|
||||
|
||||
#define PZeroVector2(type) TVector2<##type>(0,0)
|
||||
#define PVectorSouth2(type) TVector2<##type>(0,-1)
|
||||
#define PVectorNorth2(type) TVector2<##type>(0,1)
|
||||
#define PVectorEast2(type) TVector2<##type>(1,0)
|
||||
#define PVectorWest2(type) TVector2<##type>(-1,0)
|
||||
#define PZeroVector2(type, aligned) TVector2<##type, ##aligned>(0,0)
|
||||
#define PVectorSouth2(type, aligned) TVector2<##type, ##aligned>(0,-1)
|
||||
#define PVectorNorth2(type, aligned) TVector2<##type, ##aligned>(0,1)
|
||||
#define PVectorEast2(type, aligned) TVector2<##type, ##aligned>(1,0)
|
||||
#define PVectorWest2(type, aligned) TVector2<##type, ##aligned>(-1,0)
|
||||
|
||||
|
||||
namespace Phanes::Core::Math {
|
||||
|
@ -18,13 +18,13 @@
|
||||
#ifndef VECTOR3_H
|
||||
#define VECTOR3_H
|
||||
|
||||
#define PZeroVector3(type) TVector3<##type>(0,0,0)
|
||||
#define PVectorForward3(type) TVector3<##type>(1,0,0)
|
||||
#define PVectorBackward3(type) TVector3<##type>(-1,0,0)
|
||||
#define PVectorEast3(type) TVector3<##type>(0,1,0)
|
||||
#define PVectorWest3(type) TVector3<##type>(0,-1,0)
|
||||
#define PVectorUp3(type) TVector3<##type>(0,0,1)
|
||||
#define PVectorDown3(type) TVector3<##type>(0,0,-1)
|
||||
#define PZeroVector3(type, aligned) TVector3<##type, ##aligned>(0,0,0)
|
||||
#define PVectorForward3(type, aligned) TVector3<##type, ##aligned>(1,0,0)
|
||||
#define PVectorBackward3(type, aligned) TVector3<##type, ##aligned>(-1,0,0)
|
||||
#define PVectorEast3(type, aligned) TVector3<##type, ##aligned>(0,1,0)
|
||||
#define PVectorWest3(type, aligned) TVector3<##type, ##aligned>(0,-1,0)
|
||||
#define PVectorUp3(type, aligned) TVector3<##type, ##aligned>(0,0,1)
|
||||
#define PVectorDown3(type, aligned) TVector3<##type, ##aligned>(0,0,-1)
|
||||
|
||||
namespace Phanes::Core::Math {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user