Polygon

class Polygon(npoints: Int, xpoints: IntArray, ypoints: IntArray)

Constructors

Polygon
Link copied to clipboard
fun Polygon(points: Collection<Point>)

Types

Companion
Link copied to clipboard
object Companion

Functions

contains
Link copied to clipboard
fun contains(p: Point?): Boolean
fun contains(x: Int, y: Int): Boolean
getBounds
Link copied to clipboard
fun getBounds(): Rectangle
nextPoint
Link copied to clipboard
fun nextPoint(): Point

Properties

npoints
Link copied to clipboard
val npoints: Int
xpoints
Link copied to clipboard
val xpoints: IntArray
ypoints
Link copied to clipboard
val ypoints: IntArray