matrix3 lookat(vector from, vector to)
matrix3 lookat(vector from, vector to, float roll)
matrix3 lookat(vector from, vector to, vector up)
vector lookat(vector from, vector to, float roll, int xyz)
vector lookat(vector from, vector to, vector up, int xyz)
Computes a rotation matrix or angles to orient the negative z-axis along the vector (to-from) under the transformation. If an up vector is specified, this will determine the roll.
xyz
is a rotation order defined in $HFS/houdini/support/vex/include/math.h
.
matrix |