18 Int16x3(int16_t v):x(v),y(v),z(v){}
20 Int16x3(int16_t ix,int16_t iy,int16_t iz)
30 inline bool operator == (
const Int16x3& v)
const{
31 return x == v.x && y == v.y && z == v.z;
34 inline bool operator != (
const Int16x3& v)
const{
35 return x != v.x || y != v.y || z != v.z;
38 void SetValue(int16_t v);
42 void Add(int16_t
value);
48 void Subtract(
const Int16x3& value);
50 void Subtract(int16_t value);
54 static void Subtract(
const Int16x3& v0,int16_t v1,
Int16x3& oResult);
58 void Divide(int16_t value);
62 static void DivideTo(
const Int16x3& v0,int16_t v1,
Int16x3& oResult);
80 Uint16x3(uint16_t v):x(v),y(v),z(v){}
82 Uint16x3(uint16_t ix,uint16_t iy,uint16_t iz)
92 inline bool operator == (
const Uint16x3& v)
const{
93 return x == v.x && y == v.y && z == v.z;
96 inline bool operator != (
const Uint16x3& v)
const{
97 return x != v.x || y != v.y || z != v.z;
100 inline bool operator == (
const Int16x3& v)
const{
101 return x == v.x && y == v.y && z == v.z;
104 inline bool operator != (
const Int16x3& v)
const{
105 return x != v.x || y != v.y || z != v.z;
109 return Uint16x3((uint16)(x + v.x), (uint16)(y + v.y), (uint16)(z + v.z));
112 return Uint16x3((x + v.x), (y + v.y), (z + v.z));
115 uint32 AbsDistanceTo(
const Uint16x3& v)
const;
131 Int32x3(int32 v) :x(v), y(v), z(v){}
133 Int32x3(int32 ix, int32 iy, int32 iz)
139 :x(v.x), y(v.y), z(v.z)
150 uint32_t GetPackedChunkPos()
const;
152 static uint32_t FromChunkToPackedChunk(
int chunkX,
int chunkZ);
154 uint32_t GetCenterWorldX()
const;
156 uint32_t GetCenterWorldZ()
const;
164 return k.GetPackedChunkPos();
different physics engine has different winding order.
Definition: EventBinding.h:32
basic block world coordinate
Definition: BlockCoordinate.h:72
Definition: enum_maker.hpp:46
for block or chunk location that does not has boundary check.
Definition: BlockCoordinate.h:123
chunk column location.
Definition: BlockCoordinate.h:145
DWORD GetHashCode() const
get simple hash code
Definition: BlockCoordinate.h:118
basic block world coordinate
Definition: BlockCoordinate.h:10
Definition: BlockCoordinate.h:160