class Polygon

Fields

  int npoints

  int[] xpoints  //x coordinates

  int[] ypoints  //y coordinates

Methods

  void addPoint(int x, int y)

  boolean inside(int x, int y)

  Rectangle getBoundingBox()

    ÅÎ returns new object

 

To Next Slide To Previous Slide To Contents