lookat
VEX function
computes a rotation matrix to orient the z-axis along the vector (to-from) under the transformation.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
matrix3 lookat(vector from, vector to) -
matrix3 lookat(vector from, vector to, float roll) -
matrix3 lookat(vector from, vector to, vector up)
computes a rotation matrix to orient the z-axis along the vector (to-from) under the transformation. If an up vector is specified, this will determine the roll.