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