XYZ class, available in: Global context3D vectorThis class has 18 members:
sdleiF
float length ROlength
string toString ROtextual form
Vector toVector ROvector of [x,y,z]
float xx
float yy
float zz
snoitcnuF
function add(XYZ)doesn't return a valueaddNote: it does not return a new object, just modifies the existing one
function clone RO()returns XYZcreate new XYZ object copying the coordinatesNote: copying object references does not create new objects. Use clone() if a new object is needed.

Example:
var o1=(1,2,3), o2=o1, o3=o1.clone();
o1.y=9999;
//o2 is now (1,9999,3) but o3 is still (1,2,3)
function get RO(int index)returns floatget one of coordinatesthis function makes the XYZ objects "indexable" (so you can use [] for accessing subsequent fields, like in Vector)
function new(float x, float y, float z)returns XYZcreate new XYZ object3D vectors objects can be also created using the (x,y,z) notation, i.e. var v=(1,2,3) is the same as var v=XYZ.new(1,2,3);
function newFromVector(Vector)returns XYZcreate new XYZ objectused for deserialization
function normalize()doesn't return a valuenormalizescales the vector length to 1.0
function revRotate(Orient)doesn't return a valuereverse rotate using Orient object
function rotate(Orient)doesn't return a valuerotate using Orient object
function scale(float)doesn't return a valuemultiply by scalar
function set(XYZ)doesn't return a valueset (copy) coordinates from another XYZ object
function set3(float x, float y, float z)doesn't return a valueset individual 3 coordinates
function sub(XYZ)doesn't return a valuesubtractNote: it does not return a new object, just modifies the existing one
Global context