A Bezier curve library for .NET Standard
Go to file
Evan Hemsley 55585138da remove Core namespace 2020-02-20 17:37:52 -08:00
.circleci remove Core namespace 2020-02-20 17:37:52 -08:00
Curve remove Core namespace 2020-02-20 17:37:52 -08:00
Test remove Core namespace 2020-02-20 17:37:52 -08:00
.gitignore initial commit 2019-10-25 00:56:28 -07:00
LICENSE include license in repo 2019-10-29 14:52:04 -07:00
MoonTools.Core.Curve.sln initial commit 2019-10-25 00:56:28 -07:00
README.md remove Core namespace 2020-02-20 17:37:52 -08:00

README.md

MoonTools.Curve

NuGet Badge CircleCI

Implements quadratic and cubic Bezier curves in 2D and 3D.

Example

    var myCurve = new CubicBezierCurve3D(
        new Vector3(-4, -4, -3),
        new Vector3(-2, 4, 0),
        new Vector3(2, -4, 3),
        new Vector3(4, 4, 0)
    );

    myCurve.Point(0.5f); // => Vector3(0, 0, 0.75f)
    myCurve.Point(3, 2, 4); // => Vector3(0, 0, 0.75f);
    myCurve.Velocity(0.5f); // => Vector3(9, 0, 4.5f)
    myCurve.Velocity(3, 2, 4); // => Vector3(9, 0, 4.5f);