alchemist-interfaces / it.unibo.alchemist.model.interfaces.geometry / GeometricShape / intersects

intersects

abstract fun intersects(other: GeometricShape<S, A>): Boolean

A shape intersects another if any of its points is contained in the other one.

Parameters

other - the other shape

Return
true if the intersection is not empty