Q3Matrix4x4_SetRotateVectorToVector
You can use theQ3Matrix4x4_SetRotateVectorToVectorfunction to configure a 4-by-4 transformation matrix that rotates objects around the origin in such a way that a transformed vector matches a given vector.
TQ3Matrix4x4 *Q3Matrix4x4_SetRotateVectorToVector ( TQ3Matrix4x4 *matrix4x4, const TQ3Vector3D *v1, const TQ3Vector3D *v2);
matrix4x4- A 4-by-4 matrix.
v1- A three-dimensional vector.
v2- A three-dimensional vector.
DESCRIPTION
TheQ3Matrix4x4_SetRotateVectorToVectorfunction returns, as its function result and in thematrix4x4parameter, a rotational matrix that rotates objects around the origin in such a way that the transformed vectorv1matches the vectorv2. Bothv1andv2should be normalized.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help