76 return ((
x == v.
x) && (
y == v.
y) && (
z == v.
z));
81 return ((
x != v.
x) || (
y != v.
y) || (
z != v.
z));
177 NxReal newLength = length / m;
186 return x * v.
x +
y * v.
y +
z * v.
z;
191 return x * v.
x +
y * v.
y +
z * v.
z >= 0.0f;
196 return sqrt(
x *
x +
y *
y +
z *
z);
204 return sqrt(dx * dx + dy * dy + dz * dz);
209 NxReal a = (left.
y * right.
z) - (left.
z * right.
y);
210 NxReal b = (left.
z * right.
x) - (left.
x * right.
z);
211 NxReal c = (left.
x * right.
y) - (left.
y * right.
x);
221 NxReal a = (left.
y * right.
z) - (left.
z * right.
y);
222 NxReal b = (left.
z * right.
x) - (left.
x * right.
z);
223 NxReal c = (left.
x * right.
y) - (left.
y * right.
x);
297 temp.
cross(*
this, v);
304 temp.
cross(*
this, v);
310 return x * v.
x +
y * v.
y +
z * v.
z;
315 return NxVec3(f * v.
x, f * v.
y, f * v.
z);
NxVec3 operator*(NxReal f, const NxVec3 &v)
NxReal operator|(const NxVec3 &v) const
NxVec3 & operator+=(const NxVec3 &v)
void subtract(const NxVec3 &a, const NxVec3 &b)
const NxVec3 & operator=(const NxVec3 &)
NxVec3 operator+(const NxVec3 &v) const
void setMagnitude(NxReal)
bool sameDirection(const NxVec3 &) const
NxVec3 operator/(NxReal f) const
void setx(const NxReal &d)
void cross(const NxVec3 &left, const NxVec3 &right)
NxVec3 & operator*=(NxReal f)
void sety(const NxReal &d)
bool operator!=(const NxVec3 &) const
NxVec3 & operator-=(const NxVec3 &v)
NxVec3 operator^(const NxVec3 &v) const
void multiplyAdd(NxReal s, const NxVec3 &a, const NxVec3 &b)
NxVec3 & operator/=(NxReal f)
NxVec3 operator*(NxReal f) const
void rotate(NxReal angle, const NxVec3 &axe)
void add(const NxVec3 &a, const NxVec3 &b)
bool operator==(const NxVec3 &) const
void setz(const NxReal &d)
void arrayMultiply(const NxVec3 &a, const NxVec3 &b)
const NxReal * get() const
NxReal distance(const NxVec3 &) const
void multiply(NxReal s, const NxVec3 &a)
NxReal dot(const NxVec3 &other) const