AutoMovie API
    Preparing search index...

    A superellipse with its own half-axis and exponent in each quadrant.

    Quadrant k runs from angle k * 90 degrees to (k + 1) * 90; in it the curve is x = c.x + a * sign(cos p) |cos p|^(2/n), y = c.y + b * sign(sin p) |sin p|^(2/n) for its half-axes a, b and exponent n. Exponent 2 is an ellipse quadrant, larger values square it toward a rectangle's corner, values toward 1 straighten it toward a diamond. Neighbouring quadrants share a half-axis, so the curve is closed and meets each axis with a tangent perpendicular to it.

    interface ISuperellipse {
        centre?: IAutoMovieSweepSection.IPoint;
        down: number;
        exponents: [number, number, number, number];
        left: number;
        right: number;
        type: "superellipse";
        up: number;
    }
    Index

    Offset of the centre from the spine point; omitted, the centre is the spine point.

    down: number

    Metres from the centre to the curve along -y, positive.

    exponents: [number, number, number, number]

    Exponent per quadrant, counterclockwise from +x +y: from 1 (straight) through 2 (elliptic) to at most 20 (nearly square).

    left: number

    Metres from the centre to the curve along -x, positive.

    right: number

    Metres from the centre to the curve along +x, positive.

    type: "superellipse"

    Discriminator.

    up: number

    Metres from the centre to the curve along +y, positive.