public class Shapes
extends java.lang.Object
Constructor and Description |
---|
Shapes() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Shape |
fromTiles(int[] tiles)
Create Shape from a List of tiles.
|
static java.awt.Shape |
fromTiles(java.util.List<int[]> tiles)
Create Shape from a List of tiles.
|
static java.awt.geom.Point2D |
maxVertex(java.awt.Shape shape)
Find vertex of a Shapewith lexigraphically maximal coordinates (x,y).
|
public static java.awt.Shape fromTiles(java.util.List<int[]> tiles)
tiles
- List of tilespublic static java.awt.Shape fromTiles(int[] tiles)
tiles
- array with coordinates of tiles.public static java.awt.geom.Point2D maxVertex(java.awt.Shape shape)
shape
- input Shapejava.lang.UnsupportedOperationException
- when Shape contains non-linear curves