public interface Polygon2D extends Shape
Modifier and Type | Method and Description |
---|---|
Polygon2D |
addVertex(Point2D point2D) |
double |
area() |
Point2D |
at(int index) |
Polygon2D |
close() |
Polygon2D |
copy() |
Polygon2D |
diffrence(Polygon2D polygon2D) |
List<Point2D> |
getBounds() |
tr.com.terrayazilim.core.unit.DimensionUnit |
getDimensionUnit() |
ShapeUnit |
getShapeUnit() |
List<Point2D> |
getVertices() |
int |
getVerticesCount() |
boolean |
isBounded() |
boolean |
isClosed() |
boolean |
isConvex() |
Polygon2D |
open() |
Polygon2D |
removeVertex(Point2D point2D) |
Polygon2D |
scale(double scaleFactor) |
Polygon2D |
translate(double... args) |
double area()
boolean isClosed()
Polygon2D close()
Polygon2D open()
Point2D at(int index)
index
- boolean isConvex()
int getVerticesCount()
Polygon2D copy()
boolean isBounded()
Polygon2D translate(double... args)
Polygon2D scale(double scaleFactor)
tr.com.terrayazilim.core.unit.DimensionUnit getDimensionUnit()
getDimensionUnit
in interface Shape
ShapeUnit getShapeUnit()
getShapeUnit
in interface Shape
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.