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

  • Method Details

    • area

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

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

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