示例#1
0
 /// <summary>
 /// Gets the value at given time.
 /// The percentage must be between 0..1
 /// </summary>
 public Rect NormalizedEvaluate(float percentage)
 {
     return(new Rect(XCurve.NormalizedEvaluate(percentage),
                     YCurve.NormalizedEvaluate(percentage),
                     WidthCurve.NormalizedEvaluate(percentage),
                     HeightCurve.NormalizedEvaluate(percentage)
                     ));
 }
示例#2
0
 /// <summary>
 /// Gets the value at given time.
 /// The percentage must be between 0..1
 /// </summary>
 public Vector3 NormalizedEvaluate(float percentage)
 {
     return(new Vector3(XCurve.NormalizedEvaluate(percentage), YCurve.NormalizedEvaluate(percentage), ZCurve.NormalizedEvaluate(percentage)));
 }