Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Quadratic Bézier Curve #1

@graphemecluster

Description

@graphemecluster

"Cartesian equation type only supports straight lines. Cartesian equations for bezier curves are theoretically possible but not simple, and performance when plotted would be bad."

After simplifying a quadratic curve is actually just a simple parabola:

Implicit Function of a quadratic Bézier curve with points (A, D), (B, E) and (C, F)
 (x(D-2E+F)-y(A-2B+C))²
+2x((A+C)(DF-E²)-A(E-F)²+2B(DE-2DF+EF)-C(E-D)²)
+2y((D+F)(AC-B²)-D(B-C)²+2E(AB-2AC+BC)-F(B-A)²)
+4(BD-AE)(BF-CE)
+(AF-CD)²
=0

And the 5 constants could be pre-calculated if necessary.

Also, it would be great if something like this could be made.
Desmos Link

Thank you for reading and sorry for disturbing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions