T - the type of the polygon modelD - the dimension of the polygonA - the alignment of the polygon which must be compatible to the dimension of the polygonpublic class Polygon<T extends PolygonModelType,D extends TwoMin & ThreeMax,A extends Alignment<D>> extends FlatShape<PolygonModel<T>,D,A>
| Modifier and Type | Method and Description |
|---|---|
static <T extends PolygonModelType,D extends TwoMin & ThreeMax,A extends Alignment<D>> |
create(PolygonModel<T> model,
A alignment) |
static <T extends PolygonModelType,D extends TwoMin & ThreeMax,A extends Alignment<D>> |
createOptional(PolygonModel<T> model,
A alignment)
Creates a polygon from a polygon model and an alignment.
|
boolean |
equals(java.lang.Object o) |
PolygonExterior<D> |
getExterior() |
int |
hashCode() |
boolean |
resembles(java.lang.Object o) |
java.lang.String |
toString() |
getAlignment, getDimension, getModel, isPointOnModelpublic static <T extends PolygonModelType,D extends TwoMin & ThreeMax,A extends Alignment<D>> Polygon<T,D,A> create(PolygonModel<T> model, A alignment)
public static <T extends PolygonModelType,D extends TwoMin & ThreeMax,A extends Alignment<D>> java.util.Optional<Polygon<T,D,A>> createOptional(PolygonModel<T> model, A alignment)
alignment - the alignment of the polygon modelmodel - the polygon modeljava.lang.NullPointerException - if at least one of the arguments is nullpublic boolean resembles(java.lang.Object o)
resembles in class GeometrixObjectpublic boolean equals(java.lang.Object o)
equals in class GeometrixObjectpublic int hashCode()
hashCode in class GeometrixObjectpublic java.lang.String toString()
toString in class GeometrixObjectpublic PolygonExterior<D> getExterior()