public final Vector2[] toArray(){
  Vector2[] points=new Vector2[this.size];
  LinkedVertex vertex=this.root;
  for (int i=0; i < this.size; i++) {
    points[i]=vertex.point;
    vertex=vertex.next;
  }
  return points;
}

public final Vector2 [ ] toArray ( ) { Vector2 [ ] points = new Vector2 [ this . size ] ; LinkedVertex vertex = this . root ; for ( int i = 0 ; i < this . size ; i ++ ) { points [ i ] = vertex . point ; vertex = vertex . next ; } return points ; }
returns a new array representing this convex hull .
