Type: Vector
Server & Client
Methods
Init
void Init(float ix, float iy, float iz)
IsValid
bool IsValid() const
IsReasonable
bool IsReasonable(float range = 1000000.0) const
Invalidate
void Invalidate()
opIndex
float opIndex(int i) const
opIndex
float& opIndex(int i)
AsVector2D
Vector2D& AsVector2D()
AsVector2D
const Vector2D& AsVector2D() const
Random
void Random(float minVal, float maxVal)
Zero
void Zero()
opEquals
bool opEquals(const Vector&in) const
opAddAssign
Vector& opAddAssign(const Vector&in v)
opSubAssign
Vector& opSubAssign(const Vector&in v)
opMulAssign
Vector& opMulAssign(const Vector&in v)
opMulAssign
Vector& opMulAssign(float s)
opDivAssign
Vector& opDivAssign(const Vector&in v)
opDivAssign
Vector& opDivAssign(float s)
opAddAssign
Vector& opAddAssign(float fl)
opSubAssign
Vector& opSubAssign(float fl)
Negate
void Negate()
Length
float Length() const
LengthSqr
float LengthSqr() const
LengthRecipFast
float LengthRecipFast() const
IsZero
bool IsZero(float tolerance = 0.009999999776482582) const
IsZeroFast
bool IsZeroFast() const
NormalizeInPlace
float NormalizeInPlace()
NormalizeInPlaceSafe
float NormalizeInPlaceSafe(const Vector&in vFallback)
Normalized
Vector Normalized() const
NormalizedSafe
Vector NormalizedSafe(const Vector&in vFallback) const
IsLengthGreaterThan
bool IsLengthGreaterThan(float val) const
IsLengthLessThan
bool IsLengthLessThan(float val) const
WithinAABox
bool WithinAABox(const Vector&in boxmin, const Vector&in boxmax)
DistTo
float DistTo(const Vector&in vOther) const
DistToSqr
float DistToSqr(const Vector&in vOther) const
MulAdd
void MulAdd(const Vector&in a, const Vector&in b, float scalar)
Dot
float Dot(const Vector&in vOther) const
opAssign
Vector& opAssign(const Vector&in)
LargestComponent
int LargestComponent() const
LargestComponentValue
float LargestComponentValue() const
SmallestComponent
int SmallestComponent() const
SmallestComponentValue
float SmallestComponentValue() const
Length2D
float Length2D() const
Length2DSqr
float Length2DSqr() const
ProjectOnto
Vector ProjectOnto(const Vector&in onto)
opNeg
Vector opNeg() const
opAdd
Vector opAdd(const Vector&in v) const
opSub
Vector opSub(const Vector&in v) const
opMul
Vector opMul(const Vector&in v) const
opDiv
Vector opDiv(const Vector&in v) const
opMul
Vector opMul(float fl) const
opDiv
Vector opDiv(float fl) const
Cross
Vector Cross(const Vector&in vOther) const
Min
Vector Min(const Vector&in vOther) const
Max
Vector Max(const Vector&in vOther) const