示例#1
0
 //See https://msdn.microsoft.com/en-us/library/t3c3bfhx.aspx for information on using the out keyword
 public void Evalulate(double timeInMS, int precision, out Vector2 translation, out Vector2 scale, out float rotation)
 {
     translation = translationCurve.Evaluate(timeInMS, precision);
     scale       = scaleCurve.Evaluate(timeInMS, precision);
     rotation    = rotationCurve.Evaluate(timeInMS, precision);
 }
示例#2
0
 public Vector2 Evaluate(double timeInMS, int decimalPrecision)
 {
     return(new Vector2(xCurve.Evaluate(timeInMS, decimalPrecision), yCurve.Evaluate(timeInMS, decimalPrecision)));
 }