r3Coordsys

Method:

r3Coordsys - constructor

Syntax:

v = new r3Coordsys()

Parameters:

vOrigin, vHor, vVert, vNorm - four vectors specifying origin and axes for the coordinate system.

Returns:

cs - new coordinate system object

Description:

Creates a new coordinate system object. If you don't pass any parameters to the constructor, an indentity coordinate system is created. If the number of parameters is four, then the constructor assumes that the parameters are vectors defining oordinate system's origin, horizontal, vertical and normal axes.

Example:

    // create a coordinate system:
    o = new r3Vect(0.2, 0, 0);
    x = new r3Vect(0.1, 0, 0);
    y = new r3Vect(0, 0.1, 0);
    z = new r3Vect(0, 0, 0.1);

    cs = new r3Coordsys(o, x, y, z);