|
| Vec3 () |
| Constructs a new vector initialized to all zeros.
|
|
| Vec3 () |
| Constructs a new vector initialized to all zeros.
|
|
| Vec3 () |
| Constructs a new vector initialized to all zeros.
|
|
| Vec3 (float xx, float yy, float zz) |
| Constructs a new vector initialized to the specified values. More...
|
|
| Vec3 ( var xx, var yy, var zz) |
| Constructs a new vector initialized to the specified values. More...
|
|
| Vec3 ( local xx, local yy, local zz) |
| Constructs a new vector initialized to the specified values. More...
|
|
| Vec3 (const float *array) |
| Constructs a new vector from the values in the specified array. More...
|
|
| Vec3 (const Vec3 &p1, const Vec3 &p2) |
| Constructs a vector that describes the direction between the specified points. More...
|
|
| Vec3 (const Vec3 ©) |
| Constructs a new vector that is a copy of the specified vector. More...
|
|
| Vec3 ( var copy) |
| Constructs a new vector that is a copy of the specified vector. More...
|
|
| Vec3 ( local copy) |
| Constructs a new vector that is a copy of the specified vector. More...
|
|
| ~Vec3 () |
| Destructor.
|
|
bool | isZero () const |
| Indicates whether this vector contains all zeros. More...
|
|
bool | isOne () const |
| Indicates whether this vector contains all ones. More...
|
|
void | add (const Vec3 &v) |
| Adds the elements of the specified vector to this one. More...
|
|
var | add ( var v) |
| Adds the elements of the specified vector to this one. More...
|
|
local | add ( local v) |
| Adds the elements of the specified vector to this one. More...
|
|
void | add (float xx, float yy, float zz) |
| Adds the elements of this vector to the specified values. More...
|
|
var | add ( var xx, var yy, var zz) |
| Adds the elements of this vector to the specified values. More...
|
|
local | add ( local xx, local yy, local zz) |
| Adds the elements of this vector to the specified values. More...
|
|
void | clamp (const Vec3 &min, const Vec3 &max) |
| Clamps this vector within the specified range. More...
|
|
void | cross (const Vec3 &v) |
| Sets this vector to the cross product between itself and the specified vector. More...
|
|
float | distance (const Vec3 &v) const |
| Returns the distance between this vector and v. More...
|
|
float | distanceSquared (const Vec3 &v) const |
| Returns the squared distance between this vector and v. More...
|
|
float | dot (const Vec3 &v) const |
| Returns the dot product of this vector and the specified vector. More...
|
|
float | length () const |
| Computes the length of this vector. More...
|
|
float | lengthSquared () const |
| Returns the squared length of this vector. More...
|
|
var | lengthSquared () |
| Returns the squared length of this vector. More...
|
|
local | lengthSquared () |
| Returns the squared length of this vector. More...
|
|
void | negate () |
| Negates this vector.
|
|
var | negate () |
| Negates this vector.
|
|
local | negate () |
| Negates this vector.
|
|
void | normalize () |
| Normalizes this vector. More...
|
|
var | normalize () |
| Normalizes this vector. More...
|
|
local | normalize () |
| Normalizes this vector. More...
|
|
Vec3 | getNormalized () const |
| Get the normalized vector.
|
|
var | getNormalized () |
| Get the normalized vector.
|
|
local | getNormalized () |
| Get the normalized vector.
|
|
void | scale (float scalar) |
| Scales all elements of this vector by the specified value. More...
|
|
var | scale ( var scalar) |
| Scales all elements of this vector by the specified value. More...
|
|
local | scale ( local scalar) |
| Scales all elements of this vector by the specified value. More...
|
|
void | set (float xx, float yy, float zz) |
| Sets the elements of this vector to the specified values. More...
|
|
var | set ( var xx, var yy, var zz) |
| Sets the elements of this vector to the specified values. More...
|
|
local | set ( local xx, local yy, local zz) |
| Sets the elements of this vector to the specified values. More...
|
|
void | set (const float *array) |
| Sets the elements of this vector from the values in the specified array. More...
|
|
void | set (const Vec3 &v) |
| Sets the elements of this vector to those in the specified vector. More...
|
|
void | set (const Vec3 &p1, const Vec3 &p2) |
| Sets this vector to the directional vector between the specified points.
|
|
void | setZero () |
| Sets the elements of this vector to zero.
|
|
void | subtract (const Vec3 &v) |
| Subtracts this vector and the specified vector as (this - v) and stores the result in this vector. More...
|
|
void | smooth (const Vec3 &target, float elapsedTime, float responseTime) |
| Updates this vector towards the given target using a smoothing function. More...
|
|
Vec3 | lerp (const Vec3 &target, float alpha) const |
| Linear interpolation between two vectors A and B by alpha which is in the range [0,1].
|
|
Vec3 | operator+ (const Vec3 &v) const |
| Calculates the sum of this vector with the given vector. More...
|
|
Vec3 & | operator+= (const Vec3 &v) |
| Adds the given vector to this vector. More...
|
|
Vec3 | operator- (const Vec3 &v) const |
| Calculates the difference of this vector with the given vector. More...
|
|
Vec3 & | operator-= (const Vec3 &v) |
| Subtracts the given vector from this vector. More...
|
|
var | operator-= ( var v) |
| Subtracts the given vector from this vector. More...
|
|
local | operator-= ( local v) |
| Subtracts the given vector from this vector. More...
|
|
Vec3 | operator- () const |
| Calculates the negation of this vector. More...
|
|
Vec3 | operator* (float s) const |
| Calculates the scalar product of this vector with the given value. More...
|
|
Vec3 & | operator*= (float s) |
| Scales this vector by the given value. More...
|
|
Vec3 | operator/ (float s) const |
| Returns the components of this vector divided by the given constant. More...
|
|
bool | operator< (const Vec3 &rhs) const |
| Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against.
|
|
bool | operator> (const Vec3 &rhs) const |
| Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.
|
|
var | operator> ( var rhs) |
| Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.
|
|
local | operator> ( local rhs) |
| Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.
|
|
bool | operator== (const Vec3 &v) const |
| Determines if this vector is equal to the given vector. More...
|
|
bool | operator!= (const Vec3 &v) const |
| Determines if this vector is not equal to the given vector. More...
|
|