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
approximateCount
int
Returns
CalcDerivative(float)
public Vector2 CalcDerivative(float polylineLengthFromBeginning)
Parameters
polylineLengthFromBeginning
float
Returns
CalcDerivativeViaParameter(float)
public Vector2 CalcDerivativeViaParameter(float parameter)
Parameters
parameter
float
Returns
CalcLengthAccurate(int)
Calculate approximated length of a spline by approximating each subspline with "approximateCount" segments.
public float CalcLengthAccurate(int approximateCount)
Parameters
approximateCount
int
Returns
CalcLengthUsingGaussLegendreQuadrature()
public float CalcLengthUsingGaussLegendreQuadrature()
Returns
CalcParamForLength(float)
public float CalcParamForLength(float length)
Parameters
length
float
Returns
CalcPoint(float)
public Vector2 CalcPoint(float polylineLengthFromBeginning)
Parameters
polylineLengthFromBeginning
float
Returns
CalcPointViaParameter(float)
public Vector2 CalcPointViaParameter(float parameter)
Parameters
parameter
float
Returns
CalcPoints(float)
public IEnumerable<Vector2> CalcPoints(float step)
Parameters
step
float
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
point
Vector2
Returns
GetSegmentCount()
public int GetSegmentCount()