PiDraw API
    Preparing search index...

    Interface IRiemannConfig

    A Riemann sum: rectangles from the x axis to the graph of a plot, the domain cut in intervals of the same width.

    interface IRiemannConfig {
        domain?: Domain;
        plot: Plot;
        position?: number;
        rectangles?: number;
    }
    Index
    domain?: Domain

    What is cut in rectangles. By default the domain of the plot, which then must have one (the plot is not drawn on a domain by default).

    plot: Plot

    The plot whose sum is drawn.

    position?: number

    Where the plot is read in each interval, from 0 (its left end) to 1 (its right end): 0.5 is the middle. 0 by default.

    rectangles?: number

    How many rectangles, an integer from 1 to 1000. 5 by default.