Class CurvyInterpolatableMetadataBase<T>
- Namespace
- FluffyUnderware.Curvy
Base class for Metadata classes that support interpolation.
[ExecuteAlways]
public abstract class CurvyInterpolatableMetadataBase<T> : CurvyMetadataBase
Type Parameters
TThe Type of the Metadata's value
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourCurvyInterpolatableMetadataBase<T>
- Inherited Members
Properties
MetaDataValue
The value stored within this Metadata instance
public abstract T MetaDataValue { get; }
Property Value
- T
Methods
Interpolate(CurvyInterpolatableMetadataBase<T>, float)
Interpolates between the current Metadata's value and the one from the next Control Point's Metadata.
public abstract T Interpolate(CurvyInterpolatableMetadataBase<T> nextMetadata, float interpolationTime)
Parameters
nextMetadataCurvyInterpolatableMetadataBase<T>The Metadata from the Control Point next to the current one
interpolationTimefloatThe local F value on the segment defined by the current Control Point and the next one
Returns
- T