isInBounds

fun Location.isInBounds(from: Location, to: Location): Boolean

Checks if the location is inside the area.

Since

0.2.0

Return

If the location is in the area or not

Parameters

from

The lowest location of the area

to

The highest location of the area

Throws

If the area is invalid