412413414415416417418419420421422
v0 = vertices; while ( HullVertex.areCollinear( v0, v0.next, v0.next.next ) ) { v0 = v0.next; if ( v0 == vertices ) { throw new AllPointsCollinearException( "All points are collinear." ); } } v1 = v0.next; v2 = v1.next; v0.setProcessed( true );