Interface Circle

All Superinterfaces:
Cloneable, Comparable, Geometry, org.gvsig.tools.util.GetItem<Point>, org.gvsig.tools.util.IsEmpty, OrientablePrimitive, OrientableSurface, Primitive, Serializable, Shape, org.gvsig.tools.util.Size, Surface

public interface Circle extends Surface

This interface is equivalent to the GM_Circle specified in ISO 19107. Same as Arc, but closed to form a full circle. The "start" and "end" points are equal.

Author:
Jorge Piera
See Also:
  • Method Details

    • setPoints

      void setPoints(Point center, Point radious)
      Sets the two values to define a circle.
      Parameters:
      center - The center point of the circle.
      radious - A point that is used to calculate the radius.
    • setPoints

      void setPoints(Point center, double radious)
      Sets the two values to define a circle.
      Parameters:
      center - The center point of the circle.
      radious - The radius of the circle.
    • setPoints

      void setPoints(Point p1, Point p2, Point p3)
      Sets the values to define a circle from three points. The circle will be inside or the area defined by the three points.
      Parameters:
      p1 - First point
      p2 - Second point
      p3 - Third point
    • getCenter

      Point getCenter()
      Returns the center of the circle.
      Returns:
      The center of the circle.
    • getRadious

      double getRadious()
      Returns the radius of the circle
      Returns:
      The radius of the circle
    • getRectangleCorner

      Point getRectangleCorner()
      Returns minimum corner of the framing rectangle.
      Returns:
    • getRectangleHeight

      double getRectangleHeight()
      Return the height of the framing rectangle.
      Returns:
    • getRectangleWidth

      double getRectangleWidth()
      Return the width of the framing rectangle.
      Returns: