Class Polygon2D_I32

java.lang.Object
georegression.struct.shapes.Polygon2D_I32
All Implemented Interfaces:
Serializable, Cloneable

public class Polygon2D_I32 extends Object implements Serializable, Cloneable
Describes a polygon in 2D.
See Also:
  • Field Details

  • Constructor Details

    • Polygon2D_I32

      public Polygon2D_I32(int numVertexes)
    • Polygon2D_I32

      public Polygon2D_I32()
    • Polygon2D_I32

      public Polygon2D_I32(Polygon2D_I32 original)
    • Polygon2D_I32

      public Polygon2D_I32(int... points)
  • Method Details

    • size

      public int size()
    • get

      public Point2D_I32 get(int index)
    • flip

      public void flip()
    • isCCW

      public boolean isCCW()
    • isConvex

      public boolean isConvex()
    • isIdentical

      public boolean isIdentical(Polygon2D_I32 a)
    • isEquivalent

      public boolean isEquivalent(Polygon2D_I32 a, double tol)
    • setTo

      public Polygon2D_I32 setTo(Polygon2D_I32 orig)
    • zero

      public void zero()
      Sets the value of every vertex to be zero
    • set

      public void set(int index, int x, int y)
    • copy

      public Polygon2D_I32 copy()