示例#1
0
 public void Bezier(ref Double2 p0, ref Double2 p1, ref Double2 p2, ref Double2 p3, float alpha, out Double2 result)
 {
     Double2.Lerp(ref p0, ref p1, alpha, out var p01);
     Double2.Lerp(ref p1, ref p2, alpha, out var p12);
     Double2.Lerp(ref p2, ref p3, alpha, out var p23);
     Double2.Lerp(ref p01, ref p12, alpha, out var p012);
     Double2.Lerp(ref p12, ref p23, alpha, out var p123);
     Double2.Lerp(ref p012, ref p123, alpha, out result);
 }
示例#2
0
 public void Linear(ref Double2 a, ref Double2 b, float alpha, out Double2 result)
 {
     Double2.Lerp(ref a, ref b, alpha, out result);
 }