public/vector.h
117118119120121122
FORCEINLINE Vector& operator/=(const Vector &v);
FORCEINLINE Vector& operator/=(float s);
// negate the vector components
void Negate();
117118119120121122123124
FORCEINLINE Vector& operator/=(const Vector &v);
FORCEINLINE Vector& operator/=(float s);
void ClampToAABB(const Vector &mins, const Vector &maxs);
// negate the vector components
void Negate();
573574575576577578
x = -x; y = -y; z = -z;
}
FORCEINLINE_VECTOR Vector& Vector::operator+=(const Vector& v)
{
CHECK_VALID(*this);
575576577578579580581582583584585586587
x = -x; y = -y; z = -z;
}
inline void Vector::ClampToAABB(const Vector &mins, const Vector &maxs)
{
x = clamp(x, mins.x, maxs.x);
y = clamp(y, mins.y, maxs.y);
z = clamp(z, mins.z, maxs.z);
}
FORCEINLINE_VECTOR Vector& Vector::operator+=(const Vector& v)
{
CHECK_VALID(*this);