Curve クラス
t∈[0,1] を写像するイージング曲線の基底。FlutterのCurve相当。 端点(t==0/t==1)はそのまま返し、その間だけTransformInternalへ委譲します。
名前空間: FloatSoda.Animation
アセンブリ: FloatSoda.dll
public abstract record Curve : ICurve, IEquatable<Curve>BounceInCurve, BounceInOutCurve, BounceOutCurve, Cubic, DecelerateCurve, ElasticInCurve, ElasticInOutCurve, ElasticOutCurve, FlippedCurve, Interval, LinearCurve, SawTooth, ThreePointCubic, Threshold
実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Flipped
Section titled “Flipped”時間軸・値軸を反転したカーブ(Flutterのflipped)。
public Curve Flipped { get; }プロパティの値
Section titled “プロパティの値”PrintMembers(StringBuilder)
Section titled “PrintMembers(StringBuilder)”ToStringが出力するメンバーを書き出します。基底のCurveは何も出力しません。
protected virtual bool PrintMembers(StringBuilder builder)パラメーター
Section titled “パラメーター”builder StringBuilder
出力先。
メンバーを出力した場合はtrue。
recordが自動生成する実装は、publicなインスタンスプロパティをすべて出力します。
Flippedは新しいカーブを毎回作って返すため、自動生成のままだと
ToStringが無限再帰します。派生型が宣言したメンバーは、派生型の実装が出力します。
Transform(double)
Section titled “Transform(double)”t∈[0,1] を変換します。端点は保証され、内部処理はTransformInternalに委譲します。
public double Transform(double t)パラメーター
Section titled “パラメーター”t double
TransformInternal(double)
Section titled “TransformInternal(double)”t∈(0,1) の変換本体。派生クラスが実装します。
protected abstract double TransformInternal(double t)パラメーター
Section titled “パラメーター”t double