Package com.sk89q.worldedit.math.geom
Class Polygons
java.lang.Object
com.sk89q.worldedit.math.geom.Polygons
Helper method for anything related to polygons.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<BlockVector2> polygonizeCylinder
(BlockVector2 center, Vector2 radius, int maxPoints) Calculates the polygon shape of a cylinder which can then be used for e.g.
-
Method Details
-
polygonizeCylinder
public static List<BlockVector2> polygonizeCylinder(BlockVector2 center, Vector2 radius, int maxPoints) Calculates the polygon shape of a cylinder which can then be used for e.g. intersection detection.- Parameters:
center
- the center point of the cylinderradius
- the radius of the cylindermaxPoints
- max points to be used for the calculation- Returns:
- a list of
BlockVector2
which resemble the shape as a polygon
-