inside

fun inside(x: Float, y: Float): Boolean

Checks if the given float coordinates are inside the hitbox.

Return

True if the point is inside the hitbox, false otherwise.

Parameters

x

The x coordinate.

y

The y coordinate.


fun inside(x: Int, y: Int): Boolean

Checks if the given integer coordinates are inside the hitbox.

Return

True if the point is inside the hitbox, false otherwise.

Parameters

x

The x coordinate.

y

The y coordinate.


fun inside(point: ERROR CLASS: Symbol not found for Pair<kotlin/Int, kotlin/Int>): Boolean

Checks if the given integer point is inside the hitbox.

Return

True if the point is inside the hitbox, false otherwise.

Parameters

point

A pair representing the (x, y) coordinates.


Checks if the given double coordinates are inside the hitbox.

Return

True if the point is inside the hitbox, false otherwise.

Parameters

x

The x coordinate.

y

The y coordinate.


fun inside(point: ERROR CLASS: Symbol not found for Pair<kotlin/Double, kotlin/Double>): Boolean

Checks if the given double point is inside the hitbox.

Return

True if the point is inside the hitbox, false otherwise.

Parameters

point

A pair representing the (x, y) coordinates.


val inside: (ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>) -> Boolean