This is a C++ wrapper class of deVector3f. More...
#include <deVector3.h>
Public Member Functions | |
deFloat & | operator[] (const deInt i) |
return this[i] | |
const deFloat & | operator[] (const deInt i) const |
return const this[i] | |
operator deFloat * () | |
(deVector3& )this | |
operator const deFloat * () const | |
(const deVector3& )this | |
deFloat & | elementAt (const deInt i) |
return this[i] | |
const deFloat & | elementAt (const deInt i) const |
return const this[i] | |
DE_MATH_API void | operator= (const deVector3 &v) |
this = v; | |
DE_MATH_API deInt | operator== (const deVector3 &v) const |
return (this == v) | |
DE_MATH_API void | operator+= (const deVector3 &v) |
this += v | |
DE_MATH_API void | operator-= (const deVector3 &v) |
this -= v | |
DE_MATH_API void | operator *= (const deVector3 &v) |
this[i] *= v[i] | |
DE_MATH_API void | operator *= (const deFloat s) |
this[i] *= s | |
DE_MATH_API void | operator+= (const deFloat s) |
this[i] += s | |
DE_MATH_API void | zero () |
this = 0 | |
DE_MATH_API deFloat | dot (const deVector3 &v) const |
return this^T * v | |
DE_MATH_API deFloat | magnitude () const |
return sqrt(this^T * this) | |
DE_MATH_API void | normalize () |
this[i] *= (1 / magnitude()) | |
DE_MATH_API void | set (const deFloat x, const deFloat y, const deFloat z) |
this = (x, y, z) | |
DE_MATH_API void | set (const deFloat *v) |
this = [x y z] | |
DE_MATH_API void | get (deFloat *v) |
[x y z] = this | |
DE_MATH_API void | minimum (const deVector3 &v) |
this[i] = min(this[i], v[i]) | |
DE_MATH_API void | maximum (const deVector3 &v) |
this[i] = max(this[i], v[i]) | |
DE_MATH_API void | negate (const deVector3 &v) |
this = -v | |
DE_MATH_API void | add (const deVector3 &v1, const deVector3 &v2) |
this = v1 + v2 | |
DE_MATH_API void | subtract (const deVector3 &v1, const deVector3 &v2) |
this = v1 - v2 | |
DE_MATH_API void | multiply (const deVector3 &v1, const deVector3 &v2) |
this[i] = v1[i] * v2[i] | |
DE_MATH_API void | multiply (const deVector3 &v, const deFloat s) |
this[i] = v[i] * s | |
DE_MATH_API void | add (const deVector3 &v, const deFloat s) |
this[i] = v[i] + s | |
DE_MATH_API void | crossMultiply (const deVector3 &v1, const deVector3 &v2) |
this = v1 x v2 | |
DE_MATH_API void | multiply (const deMatrix3 &m, const deVector3 &v) |
this = m * v | |
DE_MATH_API void | transposedMultiply (const deMatrix3 &m, const deVector3 &v) |
this = m^T * v | |
DE_MATH_API void | multiply (const deTransform &t, const deVector3 &v) |
this = [r,p]v = r*v + p | |
DE_MATH_API void | inversedMultiply (const deTransform &t, const deVector3 &v) |
this = ~[r,p]*v = [~r, -(~r*p)]*v = ~r*v -~r*p = ~r*(v-p) | |
DE_MATH_API void | diagonal (const deMatrix3 &m) |
this = diag(m) | |
DE_MATH_API void | column (const deMatrix3 &m, const deInt col) |
this = col of m | |
DE_MATH_API void | angularError (const deMatrix3 &R, const deMatrix3 &Rd) |
this = dPhi = R - Rd | |
DE_MATH_API void | eulerXYZ (const deMatrix3 &m) |
this = XYZ Euler angles of m | |
DE_MATH_API void | eulerZYX (const deMatrix3 &m) |
this = ZYX Euler angles of m | |
DE_MATH_API void | eulerZYX (const deMatrix3 &m, const deVector3 &v) |
this = ZYX Euler angles of m using v for singularity | |
DE_MATH_API void | eulerZYX (const deQuaternion &q) |
this = ZYX Euler angles of q | |
DE_MATH_API void | backSub (const deMatrix3 &LU, const deVector3 &y) |
this = x where y = LU x | |
DE_MATH_API void | multiply (const deQuaternion &q, const deVector3 &v) |
this = q * v | |
DE_MATH_API void | inversedMultiply (const deQuaternion &q, const deVector3 &v) |
this = q^-1 * v | |
DE_MATH_API void | column (const deQuaternion &q, const deInt col) |
this = col of q | |
DE_MATH_API void | angularError (const deQuaternion &q, const deQuaternion &qd) |
DE_MATH_API void | multiply (const deFrame &f, const deVector3 &v) |
this = [r,p]v = r*v + p | |
DE_MATH_API void | inversedMultiply (const deFrame &f, const deVector3 &v) |
this = ~[r,p]*v = [~r, -(~r*p)]*v = ~r*v -~r*p = ~r*(v-p) | |
DE_MATH_API void | lerp (const deVector3 &v, const deVector3 &vg, const deFloat t) |
this = LERP |
This is a C++ wrapper class of deVector3f.
|
this[i] = v[i] + s
|
|
this = v1 + v2
|
|
|
|
this = dPhi = R - Rd
|
|
this = x where y = LU x
|
|
this = col of q
|
|
this = col of m
|
|
this = v1 x v2
|
|
this = diag(m)
|
|
return this^T * v
|
|
return const this[i]
|
|
return this[i]
|
|
this = XYZ Euler angles of m
|
|
this = ZYX Euler angles of q
|
|
this = ZYX Euler angles of m using v for singularity
|
|
this = ZYX Euler angles of m
|
|
[x y z] = this
|
|
this = ~[r,p]*v = [~r, -(~r*p)]*v = ~r*v -~r*p = ~r*(v-p)
|
|
this = q^-1 * v
|
|
this = ~[r,p]*v = [~r, -(~r*p)]*v = ~r*v -~r*p = ~r*(v-p)
|
|
this = LERP
|
|
return sqrt(this^T * this)
|
|
this[i] = max(this[i], v[i])
|
|
this[i] = min(this[i], v[i])
|
|
this = [r,p]v = r*v + p
|
|
this = q * v
|
|
this = [r,p]v = r*v + p
|
|
this = m * v
|
|
this[i] = v[i] * s
|
|
this[i] = v1[i] * v2[i]
|
|
this = -v
|
|
this[i] *= (1 / magnitude())
|
|
this[i] *= s
|
|
this[i] *= v[i]
|
|
(const deVector3& )this
|
|
(deVector3& )this
|
|
this[i] += s
|
|
this += v
|
|
this -= v
|
|
this = v;
|
|
return (this == v)
|
|
return const this[i]
|
|
return this[i]
|
|
this = [x y z]
|
|
this = (x, y, z)
|
|
this = v1 - v2
|
|
this = m^T * v
|
|
this = 0
|