elefher / glmatrix

Automatically exported from code.google.com/p/glmatrix
0 stars 0 forks source link

FR: rotateAbout(mat, angle, axis, pivot, dest) #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a reasonable amount of objects that require translation, rotation, and 
then return to previous matrix.

Not understanding how expensive the different options are, i’ve been doing:
mat4.translate(mvMatrix, [-0.5, 1.5, 0.0]);
mat4.rotate(mvMatrix, degToRad(ryRArm), [1.0, 0.0, 0.0]);
mat4.translate(mvMatrix, [0.5, -1.5, 0.0]);
.. do more ops in area ..

Is it worth introducing that function, or am I being dense? :)

Original issue reported on code.google.com by jdrinkwater on 4 Mar 2011 at 12:56

GoogleCodeExporter commented 8 years ago
Sorry about the late respons 
but I would say that this is a function that you would implement yourself as 
both of those functions are highly optimized  

Original comment by jeroom832@gmail.com on 9 Mar 2011 at 2:37