GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


A Paste by baldurk
1
 
float a, b, c;

a = vec.x * m[0] + vec.y * m[1] + vec.z * m[2] + m[3];
b = vec.x * m[4] + vec.y * m[5] + vec.z * m[6] + m[7];
c = vec.x * m[8] + vec.y * m[9] + vec.z * m[10] + m[11];

return Vector(a, b, c);