| OPCODE | ARGUMENTS | RETURNS | DESC | MORE |
| affine_multiply | AFFINE AFFINE | AFFINE |
Muliply 2 4x4 matrices. Used
to
combine 2 affine transformations. Note: Some affine transformations need
to be performed in a particular order to make sense. |
|
| affine_rotate | VECTOR | AFFINE |
Convert a list of 3 angles (Xrotation
Yrotation Zrotation) into an affine tranformation. NOTE: The angles
should be in radiens |
|
| affine_scale | VECTOR | AFFINE |
Convert a scale vector (Xscale Yscale
Zscale) into and affine tranformation. Note: 1.0 1.0 1.0 = No scaling.
2.0 2.0 2.0 = Double the size. 0.5 0.5 0.5 = Half the size. |
|
| affine_translate | VECTOR | AFFINE |
Convert a displacement vector (X Y Z)
into an affine transformation |
|
| cart_to_cyl | VECTOR | VECTOR |
Convert a cartesian vector to cylindrical coordinates |
|
| cart_to_sphere | VECTOR | VECTOR |
Convert a cartesian vector to
sphereical coordinates
|
|
| copy | ANY | ANY |
Copy the top of the stack, and push it onto the
stack. |
|
| cyl_to_cart | VECTOR | VECTOR |
Convert a vector in cylindrical coordinates to cartesian coordinates |
|
| cyl_to_degress | VECTOR | VECTOR |
Convert a cylindical vector in radiens to degress |
|
| cyl_to_radiens | VECTOR | VECTOR |
Convert a cylindical vector in degrees to radiens |
|
| degress | VECTOR | VECTOR |
Convert a vector or scaler in radiens to degress |
|
| dT | | SCALER |
Push the value of dT into the stack |
|
| identity | | AFFINE |
Push the identity matrix onto the stack |
|
| load | | ANY |
Push the last value stored by STORE onto the
stack. |
|
| pi | | SCALER |
Push the value of PI onto the stack |
|
| radiens | VECTOR | VECTOR |
Convert a vector or scaler in degress to radiens |
|
| setDT | SCALER | |
POP the current stack value into the dT variable. |
|
| sphere_to_cart | VECTOR | VECTOR |
Convert a vector in spherical coordinates to cartesian coordinates |
|
| sphere_to_degress | VECTOR | VECTOR |
Convert a sphereical vector in radiens to a sphereical vector in degrees |
|
| sphere_to_radiens | VECTOR | VECTOR |
Convert a sphereical vector in degress to a sphereical vector in radiens |
|
| store | ANY | ANY |
Store the top of the stack internally for later use.
The value stored remains at the top of the stack. |
|
| vector_add | VECTOR VECTOR | VECTOR |
Add 2 vectors |
|
| vector_length | VECTOR | SCALER |
Return the length of a vector |
|
| vector_scale | SCALER VECTOR | VECTOR |
Scale a vector by a scaler |
|
| vector_subtract | VECTOR VECTOR | VECTOR |
Subtract 2 vectors |
|
| vector_transform | AFFINE VECTOR | VECTOR |
Transform a vector using an affine matrix |
|