RectangleExtension

object RectangleExtension

Utilities for Rectangle.

Functions

Link copied to clipboard
operator fun Rectangle.contains(point: Point): Boolean

Returns whether the Rectangle contains point.

Link copied to clipboard
fun <T, P : Position2D<P>> Rectangle.intersectingNodes(nodes: Map<Node<T>, P>, wormhole: Wormhole2D<P>): Map<Node<T>, P>

Returns the nodes intersecting with the caller rectangle.