Package georegression.struct.shapes
Class Polygon2D_I32
java.lang.Object
georegression.struct.shapes.Polygon2D_I32
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a polygon in 2D.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPolygon2D_I32
(int numVertexes) Polygon2D_I32
(int... points) Polygon2D_I32
(Polygon2D_I32 original) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
flip()
get
(int index) boolean
isCCW()
boolean
isConvex()
boolean
isEquivalent
(Polygon2D_I32 a, double tol) boolean
void
set
(int index, int x, int y) setTo
(Polygon2D_I32 orig) int
size()
void
zero()
Sets the value of every vertex to be zero
-
Field Details
-
vertexes
-
-
Constructor Details
-
Polygon2D_I32
public Polygon2D_I32(int numVertexes) -
Polygon2D_I32
public Polygon2D_I32() -
Polygon2D_I32
-
Polygon2D_I32
public Polygon2D_I32(int... points)
-
-
Method Details
-
size
public int size() -
get
-
flip
public void flip() -
isCCW
public boolean isCCW() -
isConvex
public boolean isConvex() -
isIdentical
-
isEquivalent
-
setTo
-
zero
public void zero()Sets the value of every vertex to be zero -
set
public void set(int index, int x, int y) -
copy
-