Package 

Interface MutableConvexPolygon

  • All Implemented Interfaces:
    it.unibo.alchemist.model.implementations.geometry.AwtShapeCompatible , it.unibo.alchemist.model.interfaces.geometry.ConvexGeometricShape , it.unibo.alchemist.model.interfaces.geometry.GeometricShape , it.unibo.alchemist.model.interfaces.geometry.euclidean2d.ConvexPolygon , java.io.Serializable

    
    public interface MutableConvexPolygon
     implements ConvexPolygon
                        

    A mutable ConvexPolygon.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean addVertex(Integer index, Double x, Double y) Adds a vertex to the polygon.
      abstract Boolean removeVertex(Integer index) Removes a vertex from the polygon.
      abstract Boolean moveVertex(Integer index, Double newX, Double newY) Moves a vertex of the polygon to a new absolute position.
      abstract Boolean replaceEdge(Integer index, Segment2D<Euclidean2DPosition> newEdge) Replaces an edge of the polygon.
      abstract Euclidean2DPosition getCentroid()
      abstract Double getDiameter()
      Double getRadius()
      • Methods inherited from class it.unibo.alchemist.model.interfaces.geometry.euclidean2d.MutableConvexPolygon

        closestEdgeTo, contains, contains, containsBoundaryExcluded, containsBoundaryIncluded, edges, getEdge, intersects, intersects, isAdjacentTo, liesOnBoundary, vertices
      • Methods inherited from class it.unibo.alchemist.model.interfaces.geometry.ConvexGeometricShape

        intersects, transformed
      • Methods inherited from class it.unibo.alchemist.model.interfaces.geometry.euclidean2d.ConvexPolygon

        asAwtShape
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait