public static interface Polygon.Builder
@NonNull Polygon.Builder addRing(@NonNull Point p1, @NonNull Point p2, @NonNull Point p3, @NonNull Point... pn)
There can be one or more outer rings and zero or more inner rings. If a polygon has an inner ring, the inner ring looks like a hole. If the hole contains another outer ring, that outer ring looks like an island.
There must be one "main" outer ring that contains all the others.
@NonNull Polygon build()
Copyright © 2017–2023. All rights reserved.