Class VectorTile

java.lang.Object
com.github.basking2.sdsai.marchinesquares.VectorTile

public class VectorTile extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    These are lines that exited the polygon from the bottom.
    Fully finished features.
    These are lines that exited the polygon from the left; This list is ordered from top-to-bottom with out-bound edges preceding inbound edges.
    These are lines that exited the polygon from the right; This list is ordered from top-to-bottom with out-bound edges preceding inbound edges.
    These are lines that exited the polygon from the top; This list is ordered from left-to-right with out-bound edges preceding inbound edges.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Double[][]
    Return A 2x2 array where [0][0] is x-min, [0][1] is x-max, [1][0] is y-min, and [1][1] is y-max.
    Put negative features, polygons that are holes, inside features that are positive polygons.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • features

      public final LinkedList<Feature> features
      Fully finished features. These are often polygons, but can be curves.
    • bottom

      public final LinkedList<Side> bottom
      These are lines that exited the polygon from the bottom. This list is ordered from left-to-right with out-bound edges preceding inbound edges.
    • left

      public final LinkedList<Side> left
      These are lines that exited the polygon from the left; This list is ordered from top-to-bottom with out-bound edges preceding inbound edges.
    • top

      public final LinkedList<Side> top
      These are lines that exited the polygon from the top; This list is ordered from left-to-right with out-bound edges preceding inbound edges.
  • Constructor Details

    • VectorTile

      protected VectorTile()
  • Method Details

    • buildBoundingBox

      public static Double[][] buildBoundingBox(Feature feature)
      Return A 2x2 array where [0][0] is x-min, [0][1] is x-max, [1][0] is y-min, and [1][1] is y-max.
      Parameters:
      feature - The features.
      Returns:
      A 2x2 array where [0][0] is x-min, [0][1] is x-max, [1][0] is y-min, and [1][1] is y-max.
    • collateHoles

      public VectorTile collateHoles()
      Put negative features, polygons that are holes, inside features that are positive polygons.