Interface Surface

All Superinterfaces:
Cloneable, Geometry, Serializable
All Known Implementing Classes:
Annotation, Ellipse, OrientedRectangle, OrientedRectangle.Double, OrientedRectangle.Float, Polygon, Rectangle, Rectangle.Double, Rectangle.Float

public interface Surface extends Geometry
  • Field Details Link icon

  • Method Details Link icon

    • area Link icon

      double area()
      Computes and returns the surface area.
      Specified by:
      area in interface Geometry
      Returns:
      the surface area.
    • centroid Link icon

      Point centroid()
      Returns the centroid of the current surface.
      Returns:
      the centroid.
    • pointOnSurface Link icon

      Point pointOnSurface()
      Returns a point that is located in the interior of this surface geometry.
      Returns:
      a point on thge surface.