Class Polygons

java.lang.Object
com.sk89q.worldedit.math.geom.Polygons

public final class Polygons extends Object
Helper method for anything related to polygons.
  • 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 cylinder
      radius - the radius of the cylinder
      maxPoints - max points to be used for the calculation
      Returns:
      a list of BlockVector2 which resemble the shape as a polygon