gabboraron_szamgraf-gy11/GY11/ParamCylinder.pde
class ParamCylinder extends ParamSurface {
  
  float r = 2;
  float h = 3;
  
  PVector GetNormal(float u, float v) {
   float alpha = u * 2 * PI;
   return new PVector(cos(alpha), 
     0, 
     sin(alpha));
  }
  
  PVector GetPos(float u, float v) {
   float alpha = u * 2 * PI;
   
   return new PVector(r * cos(alpha), 
   v * h, 
   r * sin(alpha));
    
  }
  
}
