validate

fun validate(from: Location, to: Location)

Checks if the area is valid.

Parameters

from

The lowest location of the area

to

The highest location of the area

Throws

If the area is invalid