PDA

View Full Version : Doing Calculations



Rajveer
03-22-2002, 07:25 AM
Is there some built in way to calculate areas, lengths, radius of curvature, etc. of a shape that has been rendered on the screen using OpenGL? I've drawn a 2D oval type shape from random coordinates which I scanned from another file. And I need to calculate those things I mentioned above.

richardve
03-22-2002, 07:37 AM
Nope (GL == Graphics Library, not Math Library).

I'd recommend to build a math library yourself or just pick a good one from the COTD (http://www.flipcode.com/cotd) @ flipCode and use those functions to do calculations.

davepermen
03-23-2002, 04:41 AM
opengl draws points,lines,triangles.
it can draw textures on it..

fin