Home

Awesome

日本語の Readme はこちら

UnityCurveUtils

A utility that can use 18 kinds of curve algorithm.

Version

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