private Point getPoint ( Vector2f pt ) { Point p = nextFreePoint ; if ( p != null ) { nextFreePoint = p . next ; // initialize new point to safe values p . next = null ; p . prev = null ; p . pt = pt ; return p ; } return new Point ( pt ) ; }
Create or reuse a point