Abstract
Returns true
if and only if the given point
is contained within this shape.
epsilon
is a small number used to counteract floating point error. Thus, if
point
is within epsilon
of the inside of this shape, containsPoint
may also
return true
.
The default implementation relies on signedDistance
.
Subclasses may override this method to provide a more efficient implementation.
Returns a bounding box that loosely fits the content of this shape.
The result of this call can be larger than the result of getTightBoundingBox,
but should not be smaller. Thus, a call to getLooseBoundingBox
can be significantly
faster than a call to getTightBoundingBox for some shapes.
Abstract
getAbstract
intersectspoints at which this shape intersects the given lineSegment
.
If this is a closed shape, returns points where the given lineSegment
intersects
the boundary of this.
Abstract
signedComputes the signed distance function for this shape.
An abstract base class for 2D shapes.