class Pion{ Vecteur pos; public Pion(Vecteur v){ pos=v.cloner(); } public Pion(float x,float y,float z){ pos=new Vecteur(x,y,z); } public void dessiner(){ pushMatrix(); translate(pos.x,pos.y,0); fill(200,30,40); noStroke(); beginShape(TRIANGLES); for(int i=0;i<=12;i++){ float a1=PI/6*i,a2=PI/6*(i+1); vertex(0,0,pos.z); vertex(24*cos(a1),24*sin(a1),0); vertex(24*cos(a2),24*sin(a2),0); } endShape(); popMatrix(); } }