Unity C#
Need help with unity-curve-utils?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
baba-s

Description

A utility that can use 18 kinds of curve algorithm.

142 Stars 16 Forks MIT License 26 Commits 0 Opened issues

Services available

Need anything else?

日本語の 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.