QueryShape

trait QueryShape[Area, P, H]

A shape for range queries. Type A indicates the results of area calculations, and may be specialized.

A shape for range queries. Type A indicates the results of area calculations, and may be specialized.

class Object
trait Matchable
class Any

Value members

Abstract methods

def containsP(p: P): Boolean

Queries the overlap of this shape with a given IntPoint2D p. The point is considered to have a side length of 1!

Queries the overlap of this shape with a given IntPoint2D p. The point is considered to have a side length of 1!

Returns

true if this shape contains or partly overlaps the given point

def isAreaGreater(a: H, b: Area): Boolean
def isAreaNonEmpty(area: Area): Boolean
def overlapArea(q: H): Area