Aztec Script Reference

AztecVector3 Class

Summary

Three component floating point vector

Methods

     The table below summarizes the methods of AztecVector3
MethodDescription
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
PropertyDescription
xX component of the vector.
yY component of the vector.
zZ 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

Groups [ Class ]
Documents [ LXR ID Search ]
Entries [ AztecVertex ]

This page was generated by APIDOC