19#define SCL_VEC_XY(v) (v).GetX(), (v).GetY()
134 return X *
X +
Y *
Y;
156 return (*
this - Other).Length();
190 return X * Other.
X +
Y * Other.
Y;
202 return X == Other.
X &&
Y == Other.
Y;
224 return vec2(
X + Other.
X,
Y + Other.
Y);
248 return vec2(
X + Scalar,
Y + Scalar);
272 return vec2(
X - Other.
X,
Y - Other.
Y);
296 return vec2(
X - Scalar,
321 return vec2(
X * Other.
X,
Y * Other.
Y);
345 return vec2(
X * Scalar,
370 return vec2(
X / Other.
X,
Y / Other.
Y);
394 return vec2(
X / Scalar,
bool operator==(const vec2 &Other)
T & operator[](int Index)
const vec2 operator+(float Scalar) const
const vec2 & operator*=(float Scalar)
const vec2 operator-() const
const vec2 operator/(float Scalar) const
static vec2 Min(const vec2 &A, const vec2 &B)
const vec2 operator/(const vec2 &Other) const
T Dot(const vec2 &Other) const
const vec2 operator-(const vec2 &Other) const
const vec2 & operator-=(float Scalar)
const vec2 & operator/=(float Scalar)
const vec2 operator+(const vec2 &Other) const
vec2 & operator=(const vec2 &Other)
const vec2 operator-(float Scalar) const
const vec2 & operator/=(const vec2 &Other)
const vec2 & operator*=(const vec2 &Other)
static vec2 Max(const vec2 &A, const vec2 &B)
const vec2 & operator+=(const vec2 &Other)
const vec2 & operator-=(const vec2 &Other)
const vec2 & operator+=(float Scalar)
T Distacnce(const vec2 &Other) const
const vec2 operator*(const vec2 &Other) const
static vec2 Rnd(T Min=0, T Max=1)
const vec2 operator*(float Scalar) const