|
| | tf2Vector4 () |
| |
| | tf2Vector4 (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w) |
| |
| tf2Vector4 | absolute4 () const |
| |
| tf2Scalar | getW () const |
| |
| int | maxAxis4 () const |
| |
| int | minAxis4 () const |
| |
| int | closestAxis4 () const |
| |
| void | setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w) |
| | Set the values.
|
| |
| | Vector3 () |
| | No initialization constructor.
|
| |
| | Vector3 (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z) |
| | Constructor from scalars.
|
| |
| Vector3 & | operator+= (const Vector3 &v) |
| | Add a vector to this one.
|
| |
| Vector3 & | operator-= (const Vector3 &v) |
| | Subtract a vector from this one.
|
| |
| Vector3 & | operator*= (const tf2Scalar &s) |
| | Scale the vector.
|
| |
| Vector3 & | operator/= (const tf2Scalar &s) |
| | Inversely scale the vector.
|
| |
| tf2Scalar | dot (const Vector3 &v) const |
| | Return the dot product.
|
| |
| tf2Scalar | length2 () const |
| | Return the length of the vector squared.
|
| |
| tf2Scalar | length () const |
| | Return the length of the vector.
|
| |
| tf2Scalar | distance2 (const Vector3 &v) const |
| | Return the distance squared between the ends of this and another vector This is semantically treating the vector like a point.
|
| |
| tf2Scalar | distance (const Vector3 &v) const |
| | Return the distance between the ends of this and another vector This is semantically treating the vector like a point.
|
| |
| Vector3 & | normalize () |
| | Normalize this vector x^2 + y^2 + z^2 = 1.
|
| |
| Vector3 | normalized () const |
| | Return a normalized version of this vector.
|
| |
| Vector3 | rotate (const Vector3 &wAxis, const tf2Scalar angle) const |
| | Rotate this vector.
|
| |
| tf2Scalar | angle (const Vector3 &v) const |
| | Return the angle between this and another vector.
|
| |
| Vector3 | absolute () const |
| | Return a vector will the absolute values of each element.
|
| |
| Vector3 | cross (const Vector3 &v) const |
| | Return the cross product between this and another vector.
|
| |
| tf2Scalar | triple (const Vector3 &v1, const Vector3 &v2) const |
| |
| int | minAxis () const |
| | Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z.
|
| |
| int | maxAxis () const |
| | Return the axis with the largest value Note return values are 0,1,2 for x, y, or z.
|
| |
| int | furthestAxis () const |
| |
| int | closestAxis () const |
| |
| void | setInterpolate3 (const Vector3 &v0, const Vector3 &v1, tf2Scalar rt) |
| |
| Vector3 | lerp (const Vector3 &v, const tf2Scalar &t) const |
| | Return the linear interpolation between this and another vector.
|
| |
| Vector3 & | operator*= (const Vector3 &v) |
| | Elementwise multiply this vector by the other.
|
| |
| const tf2Scalar & | getX () const |
| | Return the x value.
|
| |
| const tf2Scalar & | getY () const |
| | Return the y value.
|
| |
| const tf2Scalar & | getZ () const |
| | Return the z value.
|
| |
| void | setX (tf2Scalar x) |
| | Set the x value.
|
| |
| void | setY (tf2Scalar y) |
| | Set the y value.
|
| |
| void | setZ (tf2Scalar z) |
| | Set the z value.
|
| |
| void | setW (tf2Scalar w) |
| | Set the w value.
|
| |
| const tf2Scalar & | x () const |
| | Return the x value.
|
| |
| const tf2Scalar & | y () const |
| | Return the y value.
|
| |
| const tf2Scalar & | z () const |
| | Return the z value.
|
| |
| const tf2Scalar & | w () const |
| | Return the w value.
|
| |
| | operator tf2Scalar * () |
| | operator tf2Scalar*() replaces operator[], using implicit conversion. We added operator != and operator == to avoid pointer comparisons.
|
| |
| | operator const tf2Scalar * () const |
| |
| bool | operator== (const Vector3 &other) const |
| |
| bool | operator!= (const Vector3 &other) const |
| |
| void | setMax (const Vector3 &other) |
| | Set each element to the max of the current values and the values of another Vector3.
|
| |
| void | setMin (const Vector3 &other) |
| | Set each element to the min of the current values and the values of another Vector3.
|
| |
| void | setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z) |
| |
| void | getSkewSymmetricMatrix (Vector3 *v0, Vector3 *v1, Vector3 *v2) const |
| |
| void | setZero () |
| |
| bool | isZero () const |
| |
| bool | fuzzyZero () const |
| |
| bool | isnan () const |
| |
| void | serialize (struct Vector3Data &dataOut) const |
| |
| void | deSerialize (const struct Vector3Data &dataIn) |
| |
| void | serializeFloat (struct Vector3FloatData &dataOut) const |
| |
| void | deSerializeFloat (const struct Vector3FloatData &dataIn) |
| |
| void | serializeDouble (struct Vector3DoubleData &dataOut) const |
| |
| void | deSerializeDouble (const struct Vector3DoubleData &dataIn) |
| |