Class Spline
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineAllowedChildrenTypes(new Type[] { typeof(SplinePoint) })]
[TangerineVisualHintGroup("/All/Nodes/Splines", null)]
public class Spline : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable
- Inheritance
-
Spline
- Implements
- Inherited Members
- Extension Methods
Constructors
Spline()
public Spline()
Properties
Closed
[YuzuMember]
[TangerineKeyframeColor(22)]
public bool Closed { get; set; }
Property Value
Methods
ApproximateByPolyline(int)
public List<Vector2> ApproximateByPolyline(int approximateCount)
Parameters
approximateCountint
Returns
CalcDerivative(float)
public Vector2 CalcDerivative(float polylineLengthFromBeginning)
Parameters
polylineLengthFromBeginningfloat
Returns
CalcDerivativeViaParameter(float)
public Vector2 CalcDerivativeViaParameter(float parameter)
Parameters
parameterfloat
Returns
CalcLengthAccurate(int)
Calculate approximated length of a spline by approximating each subspline with "approximateCount" segments.
public float CalcLengthAccurate(int approximateCount)
Parameters
approximateCountint
Returns
CalcLengthUsingGaussLegendreQuadrature()
public float CalcLengthUsingGaussLegendreQuadrature()
Returns
CalcParamForLength(float)
public float CalcParamForLength(float length)
Parameters
lengthfloat
Returns
CalcPoint(float)
public Vector2 CalcPoint(float polylineLengthFromBeginning)
Parameters
polylineLengthFromBeginningfloat
Returns
CalcPointViaParameter(float)
public Vector2 CalcPointViaParameter(float parameter)
Parameters
parameterfloat
Returns
CalcPoints(float)
public IEnumerable<Vector2> CalcPoints(float step)
Parameters
stepfloat
Returns
CalcPolylineLength()
Calculate length of a polyline comprised of spline points. Takes spline closedness into account.
public float CalcPolylineLength()
Returns
CalcSplineLengthToNearestPoint(Vector2)
public float CalcSplineLengthToNearestPoint(Vector2 point)
Parameters
pointVector2
Returns
GetSegmentCount()
public int GetSegmentCount()