Companion

object Companion

Functions

Link copied to clipboard
fun containsPoint(x: Double, y: Double, minX: Double, maxX: Double, minY: Double, maxY: Double): Boolean

returns true if rectangle (defined by minX, maxX, minY, maxY) contains the X Y point

Link copied to clipboard
fun disjoint(minX1: Double, maxX1: Double, minY1: Double, maxY1: Double, minX2: Double, maxX2: Double, minY2: Double, maxY2: Double): Boolean

Compute whether the bounding boxes are disjoint *

Link copied to clipboard
fun pointInTriangle(minX: Double, maxX: Double, minY: Double, maxY: Double, x: Double, y: Double, aX: Double, aY: Double, bX: Double, bY: Double, cX: Double, cY: Double): Boolean

Compute whether the given x, y point is in a triangle; uses the winding order method

Link copied to clipboard
fun within(minX1: Double, maxX1: Double, minY1: Double, maxY1: Double, minX2: Double, maxX2: Double, minY2: Double, maxY2: Double): Boolean

Compute whether the first bounding box 1 is within the second bounding box *