02-09-2004, 11:09 AM

Heya. In DirectX you can just declare some vectors A and B, then add add them by writing:

C = A + B;

Same goes for matrices and just about every operation you could want to apply to them. Does openGL have support like for vector and matrix math operations? Like add, multiply, normalize, invert etc... Is there any GL extensions that provide functionality like:

normalize(vector* dest, vector* src );

cross(vector* dest, vector* srcA, vector* srcB);

C = A + B;

Same goes for matrices and just about every operation you could want to apply to them. Does openGL have support like for vector and matrix math operations? Like add, multiply, normalize, invert etc... Is there any GL extensions that provide functionality like:

normalize(vector* dest, vector* src );

cross(vector* dest, vector* srcA, vector* srcB);