The question I have is how to make geometric figures by applying their mathematical formulas with java opengl, that is, assuming I want to make the hyperboloid with two sheets, whose formula is
Should I do a for cycle inside the display function like this?
for(int i=0;i<100;i++){
float x,y;
x=-Math.sqrt(c*c((i*i/a*a)+(y*y/b*b))
y=-Math.sqrt(c*c((i*i/a*a)+(x*x/b*b))
gl.glVertex3f(x,y,i);
}
I know it should not go like this because in the first match it does not and it is not initialized, however, the teacher told us to clear the formula for X & And, that's the only thing that has happened to me to do