Type: Vector2D

Server & Client

Methods

Init

void Init(float ix, float iy)

IsValid

bool IsValid() const

Invalidate

void Invalidate()

opIndex

float opIndex(int i) const

opIndex

float& opIndex(int i)

Random

void Random(float minVal, float maxVal)

opEquals

bool opEquals(const Vector2D&in v) const

opAddAssign

Vector2D& opAddAssign(const Vector2D&in v)

opSubAssign

Vector2D& opSubAssign(const Vector2D&in v)

opMulAssign

Vector2D& opMulAssign(const Vector2D&in v)

opMulAssign

Vector2D& opMulAssign(float s)

opDivAssign

Vector2D& opDivAssign(const Vector2D&in v)

opDivAssign

Vector2D& opDivAssign(float s)

Negate

void Negate()

Length

float Length() const

LengthSqr

float LengthSqr() const

IsZero

bool IsZero(float tolerance = 0.009999999776482582) const

NormalizeInPlace

float NormalizeInPlace()

IsLengthGreaterThan

bool IsLengthGreaterThan(float val) const

IsLengthLessThan

bool IsLengthLessThan(float val) const

DistTo

float DistTo(const Vector2D&in vOther) const

DistToSqr

float DistToSqr(const Vector2D&in vOther) const

MulAdd

void MulAdd(const Vector2D&in a, const Vector2D&in b, float scalar)

Dot

float Dot(const Vector2D&in vOther) const

opAssign

Vector2D& opAssign(const Vector2D&in)

opNeg

Vector2D opNeg() const

opAdd

Vector2D opAdd(const Vector2D&in v) const

opSub

Vector2D opSub(const Vector2D&in v) const

opMul

Vector2D opMul(const Vector2D&in v) const

opDiv

Vector2D opDiv(const Vector2D&in v) const

opMul

Vector2D opMul(float fl) const

opDiv

Vector2D opDiv(float fl) const

Cross

float Cross(const Vector2D&in vOther) const

Min

Vector2D Min(const Vector2D&in vOther) const

Max

Vector2D Max(const Vector2D&in vOther) const