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