Class VectorTile
java.lang.Object
com.github.basking2.sdsai.marchinesquares.VectorTile
-
Field Summary
Modifier and TypeFieldDescriptionfinal LinkedList<Side>
These are lines that exited the polygon from the bottom.final LinkedList<Feature>
Fully finished features.final LinkedList<Side>
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.final LinkedList<Side>
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.final LinkedList<Side>
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Put negative features, polygons that are holes, inside features that are positive polygons.
-
Field Details
-
features
Fully finished features. These are often polygons, but can be curves. -
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. -
right
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. -
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
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
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
Put negative features, polygons that are holes, inside features that are positive polygons.
-