public final class Polygons
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<BlockVector2D> |
polygonizeCylinder(Vector2D center,
Vector2D radius,
int maxPoints)
Calculates the polygon shape of a cylinder which can then be used for e.g.
|
public static java.util.List<BlockVector2D> polygonizeCylinder(Vector2D center, Vector2D radius, int maxPoints)
center
- the center point of the cylinderradius
- the radius of the cylindermaxPoints
- max points to be used for the calculationBlockVector2D
which resemble the shape as a polygon