|
Summary
Three component floating point vector
|
Methods
The table below summarizes the methods of AztecVector3
Method | Description |
add(v) | Add this vector to the argument and keep the new value.
|
angle(v) | Return the angle between this vector and the argument.
|
cross(v) | Cross product of this vector with the parameter.
|
dot(v) | Dot product of this vector with the parameter.
|
length() | Return the length of this vector.
|
lengthSquared() | Return the square of the length of this vector.
|
mul(v) | TBD: this hasn't been implemented yet...
|
normalize() | Set this vector to unit length, retaining direction.
|
normalize(v) | Set this vector to the normalized value of the input vector.
|
set(v) | Set the value of this vector to the value of a vector parameter v.
|
set(x, y, z) | Set each component of the vector to the three floating point parameters.
|
|
Properties
The table below summarizes the properties of AztecVector3
Property | Description |
x | X component of the vector.
|
y | Y component of the vector.
|
z | Z component of the vector.
|
|
Description
Class providing a reflection of the internal MVector3 class into
JavaScript.
|
Example
How to use...
js: vec.x = 42;
js: vec.z = vec.x + 2;
js: vec.x * 2
84
...
|
See Also
|