Bitmap/Bézier curves/Cubic: Difference between revisions

Updated D entry
m (trivial simplification of power.)
(Updated D entry)
Line 256:
 
foreach (immutable i, ref p; points) {
immutable double t = i / cast(double)(nSegments),
a = (1.0 - t) ^^ 3,
b = 3.0 * t * (1.0 - t) ^^ 2,