public class ImmutablePolygon2D extends Object implements Polygon2D, Serializable
| Constructor and Description |
|---|
ImmutablePolygon2D(List<Point2D> _vertices) |
ImmutablePolygon2D(Polygon2D polygon2D) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
_findMaxOrMin(boolean isMax,
boolean isX) |
Polygon2D |
addVertex(Point2D point2D) |
double |
area() |
protected double |
areaOf(Polygon2D _poly0) |
Point2D |
at(int index) |
Polygon2D |
close() |
ImmutablePolygon2D |
copy() |
protected Polygon2D |
differenceOf(Polygon2D _poly0,
Polygon2D _poly1) |
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) |
public ImmutablePolygon2D(Polygon2D polygon2D)
polygon2D - protected int _findMaxOrMin(boolean isMax,
boolean isX)
isMax - isX - protected Polygon2D differenceOf(Polygon2D _poly0, Polygon2D _poly1)
_poly0 - _poly1 - protected double areaOf(Polygon2D _poly0)
_poly0 - public int getVerticesCount()
getVerticesCount in interface Polygon2Dpublic boolean isBounded()
public tr.com.terrayazilim.core.unit.DimensionUnit getDimensionUnit()
getDimensionUnit in interface Polygon2DgetDimensionUnit in interface Shapepublic ShapeUnit getShapeUnit()
getShapeUnit in interface Polygon2DgetShapeUnit in interface Shapepublic Polygon2D removeVertex(Point2D point2D)
removeVertex in interface Polygon2Dpublic List<Point2D> getVertices()
getVertices in interface Polygon2Dpublic ImmutablePolygon2D copy()
public Polygon2D translate(double... args)
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.