PiDraw API
    Preparing search index...

    Interface CurveOptions

    How a curve (Plot, Parametric) is sampled and drawn.

    interface CurveOptions {
        asymptoteThreshold?: number;
        domain?: Domain;
        maxDepth?: number;
        samples?: number;
        tolerance?: number;
    }

    Hierarchy (View Summary)

    Index
    asymptoteThreshold?: number

    Where a curve is taken for an asymptote, in heights of the graph: a point farther than this from the origin is not drawn, and the curve is cut where it jumps farther than this. 10 by default.

    domain?: Domain

    The values of the variable that are drawn. The default is the one of each figure.

    maxDepth?: number

    How many times an interval may be cut in two to follow a curve that bends. 6 by default.

    samples?: number

    How many samples per unit of the variable the curve starts from, before it is refined where it bends.

    tolerance?: number

    How far from the curve the drawn line may be, in pixels. 0.5 by default.