protected Vector2D[] createTriangleVertices(float triangleSize){
  Vector2D[] p=new Vector2D[3];
  double f;
  f=2.0 * Math.PI / 3.0;
  p[0]=new Vector2D(triangleSize * Math.sin(f),triangleSize * Math.cos(f));
  f=4.0 * Math.PI / 3.0;
  p[1]=new Vector2D(triangleSize * Math.sin(f),triangleSize * Math.cos(f));
  f=6.0 * Math.PI / 3.0;
  p[2]=new Vector2D(triangleSize * Math.sin(f),triangleSize * Math.cos(f));
  return p;
}

protected Vector2D [ ] createTriangleVertices ( float triangleSize ) { Vector2D [ ] p = new Vector2D [ 3 ] ; double f ; f = 2.0 * Math . PI / 3.0 ; p [ 0 ] = new Vector2D ( triangleSize * Math . sin ( f ) , triangleSize * Math . cos ( f ) ) ; f = 4.0 * Math . PI / 3.0 ; p [ 1 ] = new Vector2D ( triangleSize * Math . sin ( f ) , triangleSize * Math . cos ( f ) ) ; f = 6.0 * Math . PI / 3.0 ; p [ 2 ] = new Vector2D ( triangleSize * Math . sin ( f ) , triangleSize * Math . cos ( f ) ) ; return p ; }
builds the vertices , counter - clockwise for a triangle
