Source of RegularPolygonal.java


  2: /**
  3:  * An extension of the Polygonal interface -- which itself extends measurable.
  4:  *
  5:  * @author Mark Young (A00000000)
  6:  */
  7: public interface RegularPolygonal
  8:     // Regular polygons are Polygons, which means they have all the Polygon
  9:     // methods -- including the ones it got from Measurable.
 10:     extends Polygonal {

 12:     // and regular polygons also have edges that are all the same length
 13:     /** 
 14:      * Get the length of each of this object's sides. 
 15:      *
 16:      * @return the (common) length of all this object's sides
 17:      */
 18:     public double getEdgeLength();

 20: }