Abstract
Abstract
argReturns the parameter values at which lineSegment
intersects this shape.
See also intersectsLineSegment
Abstract
atReturns 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.
the distance from point
to this shape. If point
is within this shape,
this returns the distance from point
to the edge of this shape.
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
getpoints 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
nearestAbstract
normalAbstract
signedComputes the signed distance function for this shape.
Abstract
splitDivides this shape into two separate shapes at parameter value .
Abstract
tangent
A 2-dimensional path with parameter interval t∈[0,1].
Note: Avoid extending this class outside of
js-draw
--- new abstract methods may be added between minor versions.