A Bezier curve library for .NET Standard
Go to file
Evan Hemsley f957e8c3f4 change fields to autoproperties + add equality comparators 2019-12-08 18:42:58 -08:00
.circleci circleCI config 2019-10-29 14:19:28 -07:00
Curve change fields to autoproperties + add equality comparators 2019-12-08 18:42:58 -08:00
Test change fields to autoproperties + add equality comparators 2019-12-08 18:42:58 -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 add badges to README 2019-10-29 14:58:58 -07:00

README.md

MoonTools.Core.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);