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 Polygon2D
public boolean isBounded()
public tr.com.terrayazilim.core.unit.DimensionUnit getDimensionUnit()
getDimensionUnit
in interface Polygon2D
getDimensionUnit
in interface Shape
public ShapeUnit getShapeUnit()
getShapeUnit
in interface Polygon2D
getShapeUnit
in interface Shape
public Polygon2D removeVertex(Point2D point2D)
removeVertex
in interface Polygon2D
public List<Point2D> getVertices()
getVertices
in interface Polygon2D
public ImmutablePolygon2D copy()
public Polygon2D translate(double... args)
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.