Sure,
Do the lift you want and send me back your update I will be happy to
look at it and report it back on osg.js

Cheers,
Cedric

On Sat, 2011-02-19 at 19:29 +0100, Martin Scheffler wrote:
> Very awesome!
> 
> I'm especially interested in the JS side - I've just been looking for a 
> javascript linear algebra library to use with my own project 
> (http://www.sourceforge.net/apps/mediawiki/delta3d-extras/index.php?title=DtEntity)
> 
> Mind if I lift your vector, matrix and quat classes? I've already tried them 
> out and they seem to work perfect!
> The only thing I missed was a function to rotate a vec around a quaternion, 
> so I wrote one:
> (in osg.Quat:)
> 
> Code:
> 
> rotate: function(q, v, result) {
>         var uv = [0, 0, 0];
>         var uuv = [0, 0, 0];
>         osg.Vec3.cross(q, v, uv);
>         osg.Vec3.cross(q, uv, uuv);
>         osg.Vec3.mult(uv, 2.0 * q[3], uv);
>         osg.Vec3.mult(uuv, 2.0, uuv);
>         osg.Vec3.add(v, uv, result);
>         osg.Vec3.add(result, uuv, result);
>     },
> 
> 
> 
> 
> Thank you!
> 
> Cheers,
> Martin
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=36860#36860
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 

-- 
Provide OpenGL, WebGL and OpenSceneGraph services
+33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net
http://www.plopbyte.net

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to