Rectangle

A Rectangle.

Parameters

x

start x point

y

start y point

w

width

h

height

position type

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, w: Double, h: Double)

Functions

Link copied to clipboard
open fun and(other: Predicate<in P?>?): Predicate<P?>?
Link copied to clipboard
operator fun contains(position: P?): Boolean

Checks if the position is inside the shape.

Link copied to clipboard
operator fun <P : Position<P>> PositionBasedFilter<*>.contains(position: P): Boolean

Enables the Kotlin in operator for PositionBasedFilter instances.

Link copied to clipboard
open operator override fun invoke(position: P?): Boolean

Checks if the position is inside the shape.

Link copied to clipboard
open fun negate(): Predicate<P?>?
Link copied to clipboard
open fun or(other: Predicate<in P?>?): Predicate<P?>?
Link copied to clipboard
open override fun test(position: P?): Boolean

Checks if the position is inside the shape.