- FUNCTION:
CoDir
- TEMPLATE:
R3VECTOR *CoDir(R3VECTOR *r, R3VECTOR *dir);
- PARAMETERS:
r - result
- RETURN VALUE:
Address of the result vector 'r'
- DESCRIPTION:
Makes sure the dot product of the two given vectors is positive. If not, the direction of 'r' is reversed (r = -r).