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