info.aduna.graphics.geom
Class HexagonUtil
java.lang.Object
info.aduna.graphics.geom.HexagonUtil
public class HexagonUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexagonUtil
public HexagonUtil()
createHexagonalPoints
public static Point[] createHexagonalPoints(int amount,
int iconRadius,
int iconPadding)
- Creates and returns an array of Points organized in a hexagonal pattern
around the point [0, 0]. The number of Points can be specified as well as
the radius of the object that should be placeble at any point and the
padding between these objects, so that they do not overlap visually.
createSortedCenteredPoints
public static Point[] createSortedCenteredPoints(int amount,
int iconRadius,
int iconPadding)
Copyright © 1997-2008 Aduna. All Rights Reserved.