PiecewiseCurveFTPoint, TCurveKey Class |
Namespace: DigitalRune.Mathematics.Interpolation
[SerializableAttribute] public abstract class PiecewiseCurveF<TPoint, TCurveKey> : PiecewiseCurve<float, TPoint, TCurveKey> where TCurveKey : CurveKey<float, TPoint>
The PiecewiseCurveFTPoint, TCurveKey type exposes the following members.
Name | Description | |
---|---|---|
PiecewiseCurveFTPoint, TCurveKey | Initializes a new instance of the PiecewiseCurveFTPoint, TCurveKey class |
Name | Description | |
---|---|---|
Add | Adds an object to the end of the CollectionT. (Inherited from CollectionTCurveKey.) | |
Clear | Removes all elements from the CollectionT. (Inherited from CollectionTCurveKey.) | |
ClearItems | Removes all elements from the CollectionT. (Inherited from CollectionTCurveKey.) | |
Contains | Determines whether an element is in the CollectionT. (Inherited from CollectionTCurveKey.) | |
CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionTCurveKey.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Flatten |
Computes the points of a sequence of line segments which approximate the curve.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
GetEnumerator |
Returns an enumerator that iterates through the curve keys of the
PiecewiseCurveFTPoint, TCurveKey.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetKeyIndex |
Gets the index of the curve key before or at the given parameter value.
(Overrides PiecewiseCurveTParam, TPoint, TCurveKeyGetKeyIndex(TParam).) | |
GetLength |
Computes the approximated length of the curve for the parameter interval
[start, end].
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
GetPoint |
Computes a point on the curve.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
GetTangent |
Computes the tangent for a point on the curve.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionTCurveKey.) | |
Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionTCurveKey.) | |
InsertItem |
Inserts an element into the CollectionT at the specified index.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
IsInMirroredOscillation |
Determines whether the given parameter corresponds to a mirrored oscillation loop.
(Overrides PiecewiseCurveTParam, TPoint, TCurveKeyIsInMirroredOscillation(TParam).) | |
LoopParameter |
Handles pre- and post-looping by changing the given parameter so that it lies on the curve.
(Overrides PiecewiseCurveTParam, TPoint, TCurveKeyLoopParameter(TParam).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadXml |
Generates an object from its XML representation.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
Remove | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionTCurveKey.) | |
RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionTCurveKey.) | |
RemoveItem | Removes the element at the specified index of the CollectionT. (Inherited from CollectionTCurveKey.) | |
SetItem |
Replaces the element at the specified index.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
Sort |
Sorts the curve keys in the collection by their parameter (see
Parameter).
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteXml |
Converts an object into its XML representation.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) |
Name | Description | |
---|---|---|
Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionTCurveKey.) | |
Item | Gets or sets the element at the specified index. (Inherited from CollectionTCurveKey.) | |
Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionTCurveKey.) | |
PostLoop |
Gets or sets a value that defines how the curve looks after the last curve key.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
PreLoop |
Gets or sets a value that defines how the curve looks before the first path key.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) | |
SmoothEnds |
Gets or sets a value indicating whether the curve ends are smoothed.
(Inherited from PiecewiseCurveTParam, TPoint, TCurveKey.) |
Name | Description | |
---|---|---|
IListAdd | Adds an item to the IList. (Inherited from CollectionTCurveKey.) | |
IListContains | Determines whether the IList contains a specific value. (Inherited from CollectionTCurveKey.) | |
ICollectionCopyTo | (Inherited from CollectionTCurveKey.) | |
IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from CollectionTCurveKey.) | |
IListIndexOf | Determines the index of a specific item in the IList. (Inherited from CollectionTCurveKey.) | |
IListInsert | Inserts an item into the IList at the specified index. (Inherited from CollectionTCurveKey.) | |
IListIsFixedSize | Gets a value indicating whether the IList has a fixed size. (Inherited from CollectionTCurveKey.) | |
ICollectionTIsReadOnly | Gets a value indicating whether the ICollectionT is read-only. (Inherited from CollectionTCurveKey.) | |
IListIsReadOnly | Gets a value indicating whether the IList is read-only. (Inherited from CollectionTCurveKey.) | |
ICollectionIsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from CollectionTCurveKey.) | |
IListItem | Gets or sets the element at the specified index. (Inherited from CollectionTCurveKey.) | |
IListRemove | Removes the first occurrence of a specific object from the IList. (Inherited from CollectionTCurveKey.) | |
ICollectionSyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from CollectionTCurveKey.) |
A "piecewise curve", also known as "spline", is a curve with arbitrary length that is defined by concatenating multiple curve segments.
The PiecewiseCurveTParam, TPoint, TCurveKey is a collection of curve keys (CurveKeyTParam, 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 PiecewiseCurveTParam, TPoint, TCurveKey must not be .
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.