A Bezier curve library for .NET Standard
Go to file
Evan Hemsley ce7b56a1e4 adds README 2019-10-29 14:57:07 -07:00
.circleci circleCI config 2019-10-29 14:19:28 -07:00
Curve 1.0.1 2019-10-29 14:48:42 -07:00
Test remove monogame dependency 2019-10-28 18:55:18 -07: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 adds README 2019-10-29 14:57:07 -07:00

README.md

MoonTools.Core.Curve

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);