1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
Changes were reviewed manually
This commit is contained in:
Alexander Wilms
2024-06-24 03:23:26 +02:00
parent 820b1b446e
commit 02e429e973
277 changed files with 815 additions and 815 deletions

View File

@@ -27,16 +27,16 @@ public:
// returns float3 with coordinates increased by corresponding coordinate of given float3
float3 operator+(const float3 & i) const { return float3(x + i.x, y + i.y, z + i.z); }
// returns float3 with coordinates increased by given numer
// returns float3 with coordinates increased by given number
float3 operator+(const float i) const { return float3(x + i, y + i, z + (si32)i); }
// returns float3 with coordinates decreased by corresponding coordinate of given float3
float3 operator-(const float3 & i) const { return float3(x - i.x, y - i.y, z - i.z); }
// returns float3 with coordinates decreased by given numer
// returns float3 with coordinates decreased by given number
float3 operator-(const float i) const { return float3(x - i, y - i, z - (si32)i); }
// returns float3 with plane coordinates decreased by given numer
// returns float3 with plane coordinates decreased by given number
float3 operator*(const float i) const {return float3(x * i, y * i, z);}
// returns float3 with plane coordinates decreased by given numer
// returns float3 with plane coordinates decreased by given number
float3 operator/(const float i) const {return float3(x / i, y / i, z);}
// returns opposite position