adds README

master
Evan Hemsley 2019-10-29 14:57:07 -07:00
parent dc75b4cdc9
commit ce7b56a1e4
1 changed files with 19 additions and 0 deletions

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# MoonTools.Core.Curve
Implements quadratic and cubic Bezier curves in 2D and 3D.
## Example
```cs
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);
```