Interface Shape2D

All Known Implementing Classes:
Circle2D, Line2D, Polygon2D, Rectangle2D

public interface Shape2D
Simple 2D shape interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Constant used for comparing doubles.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(double x, double y)
     
    boolean
     
  • Field Details

    • epsilon

      static final double epsilon
      Constant used for comparing doubles.
      See Also:
  • Method Details

    • contains

      boolean contains(double x, double y)
      Parameters:
      x - point x value
      y - point y value
      Returns:
      true if the specified point is inside; false otherwise.
    • isEmpty

      boolean isEmpty()
      Returns:
      true if the Shape is empty.