XYPolygon

Represents a polygon in cartesian space. You can construct the Polygon directly with float[], float[] x, y arrays coordinates.

Constructors

Link copied to clipboard
constructor(x: FloatArray, y: FloatArray, vararg holes: XYPolygon)

Properties

Link copied to clipboard
val maxX: Float

maximum x of this polygon's bounding box area

Link copied to clipboard
val maxY: Float

maximum y of this polygon's bounding box area

Link copied to clipboard
val minX: Float

minimum x of this polygon's bounding box area

Link copied to clipboard
val minY: Float

minimum y of this polygon's bounding box area

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(obj: Any?): Boolean
Link copied to clipboard
Link copied to clipboard

Returns a copy of the internal holes array

Link copied to clipboard
fun getPolyX(vertex: Int): Float

Returns x value at given index

Link copied to clipboard
fun getPolyY(vertex: Int): Float

Returns y value at given index

Link copied to clipboard

Returns the winding order (CW, COLINEAR, CCW) for the polygon shell

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun numHoles(): Int

returns the number of holes for the polygon

Link copied to clipboard
fun numPoints(): Int

returns the number of vertex points

Link copied to clipboard
open override fun toString(): String