contains

operator fun contains(point: Translation2d): Boolean

Checks if a Translation2d (a point) is contained within the rectangular bounding provided by this zone.

Return

true if the point is within this zone, false if it is outside it.

Parameters

point

The point on the field


Checks if a point described by two given doubles is contained within the rectangular bounding provided by this zone.

Return

true if the point is within this zone, false if it is outside it.

Parameters

x

The x-coordinate of the point on the field

y

The y-coordinate of the point on the field