void LookAt(GLFrame &frame, const M3DVector3f eye, const M3DVector3f at, const M3DVector3f up) { M3DVector3f forward; m3dSubtractVectors3(forward, at, eye); SetUpFrame(frame, eye, forward, up); }
void LookAt(GLFrame &cameraFrame, const M3DVector3f cameraPosition, const M3DVector3f targetPosition, const M3DVector3f cameraUpDirection) { M3DVector3f forward; m3dSubtractVectors3(forward, targetPosition, cameraPosition); SetUpFrame(cameraFrame, cameraPosition, forward, cameraUpDirection); }