Represents a curve that is defined by piecewise interpolation of curve keys (control points). (Single-precision)

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.7.0.0 (1.7.0.9486)

Syntax

C#
[SerializableAttribute]
public abstract class PiecewiseCurveF<TPoint, TCurveKey> : PiecewiseCurve<float, TPoint, TCurveKey>
where TCurveKey : CurveKey<float, TPoint>
Visual Basic
<SerializableAttribute> _
Public MustInherit Class PiecewiseCurveF(Of TPoint, TCurveKey As CurveKey(Of Single, TPoint)) _
	Inherits PiecewiseCurve(Of Single, TPoint, TCurveKey)
Visual C++
[SerializableAttribute]
generic<typename TPoint, typename TCurveKey>
where TCurveKey : CurveKey<float, TPoint>
public ref class PiecewiseCurveF abstract : public PiecewiseCurve<float, TPoint, TCurveKey>

Type Parameters

TPoint
The type of the curve points (such as Vector2F, Vector3F, etc.).
TCurveKey
The type of the curve key. (A type derived from CurveKey<(Of <(<'TParam, TPoint>)>)>.)

Remarks

A "piecewise curve", also known as "spline", is a curve with arbitrary length that is defined by concatenating multiple curve segments.

The PiecewiseCurve<(Of <(<'TParam, TPoint, TCurveKey>)>)> is a collection of curve keys (CurveKey<(Of <(<'TParam, TPoint>)>)>). Each curve key is a control point that defines a point on the curve. The points between curve keys are created by spline interpolation of the curve keys.

The curve keys are also called "key frames" if the path represents an animation curve, or "waypoints" if the path represents a 2-dimensional or 3-dimensional path.

Curve keys in a PiecewiseCurve<(Of <(<'TParam, TPoint, TCurveKey>)>)> must not be nullNothingnullptra null reference (Nothing in Visual Basic).

The methods in this interface assume that the curve keys are sorted ascending by the curve parameter (see Parameter). If this is not the case, you can call Sort()()()() to sort keys.

Inheritance Hierarchy

System..::..Object
  System.Collections.ObjectModel..::..Collection<(Of <(<'TCurveKey>)>)>
    DigitalRune.Mathematics.Interpolation..::..PiecewiseCurve<(Of <(<'Single, TPoint, TCurveKey>)>)>
      DigitalRune.Mathematics.Interpolation..::..PiecewiseCurveF<(Of <(<'TPoint, TCurveKey>)>)>
        DigitalRune.Mathematics.Interpolation..::..Curve2F
        DigitalRune.Mathematics.Interpolation..::..Path2F
        DigitalRune.Mathematics.Interpolation..::..Path3F

See Also