within

fun within(geometry1: Geometry, geometry2: Geometry): Boolean

within returns true if geometry1 is completely within geometry2. The interiors of both geometries must intersect and, the interior and boundary of the primary (geometry a) must not intersect the exterior of the secondary (geometry b). within returns the exact opposite result of contains.

Throws

when the geometries are not comparable to each other.