Class Parameterized2DShapeAbstract

A 2-dimensional path with parameter interval t[0,1]t \in [0, 1].

Note: Avoid extending this class outside of js-draw --- new abstract methods may be added between minor versions.

Hierarchy (view full)

Constructors

Methods

  • 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.

    Parameters

    • point: Vec3
    • epsilon: number = Abstract2DShape.smallValue

    Returns boolean

  • Returns the nearest point on this to point and the parameterValue at which that point occurs.

    Parameters

    Returns {
        parameterValue: number;
        point: Vec3;
    }

    • parameterValue: number
    • point: Vec3
OpenSource licenses