Etoyoc.com | Tcl Vector 3d

vexpr Opcodes

OPCODEARGUMENTSRETURNSDESCMORE
affine_multiplyAFFINE AFFINEAFFINE 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_rotateVECTORAFFINE Convert a list of 3 angles (Xrotation Yrotation Zrotation) into an affine tranformation. NOTE: The angles should be in radiens
affine_scaleVECTORAFFINE 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_translateVECTORAFFINE Convert a displacement vector (X Y Z) into an affine transformation
cart_to_cylVECTORVECTOR Convert a cartesian vector to cylindrical coordinates
cart_to_sphereVECTORVECTOR Convert a cartesian vector to sphereical coordinates
copyANYANY Copy the top of the stack, and push it onto the stack.
cyl_to_cartVECTORVECTOR Convert a vector in cylindrical coordinates to cartesian coordinates
cyl_to_degressVECTORVECTOR Convert a cylindical vector in radiens to degress
cyl_to_radiensVECTORVECTOR Convert a cylindical vector in degrees to radiens
degressVECTORVECTOR Convert a vector or scaler in radiens to degress
dTSCALER Push the value of dT into the stack
identityAFFINE Push the identity matrix onto the stack
loadANY Push the last value stored by STORE onto the stack.
piSCALER Push the value of PI onto the stack
radiensVECTORVECTOR Convert a vector or scaler in degress to radiens
setDTSCALER POP the current stack value into the dT variable.
sphere_to_cartVECTORVECTOR Convert a vector in spherical coordinates to cartesian coordinates
sphere_to_degressVECTORVECTOR Convert a sphereical vector in radiens to a sphereical vector in degrees
sphere_to_radiensVECTORVECTOR Convert a sphereical vector in degress to a sphereical vector in radiens
storeANYANY Store the top of the stack internally for later use. The value stored remains at the top of the stack.
vector_addVECTOR VECTORVECTOR Add 2 vectors
vector_lengthVECTORSCALER Return the length of a vector
vector_scaleSCALER VECTORVECTOR Scale a vector by a scaler
vector_subtractVECTOR VECTORVECTOR Subtract 2 vectors
vector_transformAFFINE VECTORVECTOR Transform a vector using an affine matrix