unity-curve-utils

by baba-s

A utility that can use 18 kinds of curve algorithm.

136 Stars 16 Forks Last release: over 1 year ago (v1.0.0) MIT License 26 Commits 1 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

日本語の Readme はこちら

UnityCurveUtils

A utility that can use 18 kinds of curve algorithm.

Version

  • Unity 2018.3.0f2

Example

An example of use of each curve algorithm is stored in "Example" folder.

Algorithm list

B-Spline curve

var point = UnityCurveUtils.B_SplineCurve( x1, y1, x2, y2, x3, y3, t );

Bezier curve

var point = UnityCurveUtils.BezierCurve( x1, y1, x2, y2, x3, y3, x4, y4, t );

Hyperbolic spiral

var point = UnityCurveUtils.HyperbolicSpiral( a, c theta );

Witch of agnesi

var point = UnityCurveUtils.WitchOfAgnesi( a, theta );

Folium of descartes

var point = UnityCurveUtils.FoliumOfDescartes( a, theta );

Ellipse

var point = UnityCurveUtils.Ellipse( a, b, theta );

Hyperbola

var point = UnityCurveUtils.Hyperbola( a, b, theta );

Involute of circle

var point = UnityCurveUtils.InvoluteOfCircle( a, theta );

Strophoid

var point = UnityCurveUtils.Strophoid( a, theta );

Conchoid

var point = UnityCurveUtils.Conchoid( a, l, theta );

Cissoid

var point = UnityCurveUtils.Cissoid( a, theta );

Lissajous curve

var point = UnityCurveUtils.LissajousCurve( A, B, a, b, delta, theta );

Trochoid

var point = UnityCurveUtils.Trochoid( rm, theta, rd );

Epitrocoid

var point = UnityCurveUtils.Epitrocoid( rc, rm, theta, rd );

Hypetrocoid

var point = UnityCurveUtils.Hypetrocoid( rc, rm, theta, rd );

Cycloid

var point = UnityCurveUtils.Cycloid( rm, theta );

Epicycloid

var point = UnityCurveUtils.Epicycloid( rm, rd, theta );

Hypocycloid

var point = UnityCurveUtils.Hypocycloid( rm, rd, theta );

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.