R3MxNormal

FUNCTION:

R3MxNormal

TEMPLATE:

void R3MxNormal(R3MATRIX A,R3MATRIX B);

PARAMETERS:

A - a matrix which maintains normal vectors

RETURN VALUE:

DESCRIPTION:

This function computes a matrix, which maintains normal vectors. In other words, if n = u x v (cross product), then An = Bu x Bv. If you have computed normal vectors and transform the corresponding object with a matrix B, you may transform the normals with the matrix obtained by calling this function.