Mercurial > hg > dmlib
changeset 984:0ba1ec9b8608
Comment cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Feb 2015 18:12:20 +0200 |
parents | 21aeff49d974 |
children | 2fac0a28ff51 |
files | src/dmcurves.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmcurves.c Fri Feb 27 17:49:10 2015 +0200 +++ b/src/dmcurves.c Fri Feb 27 18:12:20 2015 +0200 @@ -44,13 +44,10 @@ int i; for (i = 0; i != slod; i++) { - // use the parametric time value 0.0 to 1.0 for this curve segment const float t = (float) i / slod; - - // inverse value of 't' const float it = 1.0f - t; - // calculate blending functions for cubic bspline + // Calculate blending functions for cubic bspline const float t2 = t * t; const float t3 = t2 * t; const float b0 = it * it * it / 6.0f; @@ -58,7 +55,7 @@ const float b2 = (-3*t3 + 3*t2 + 3*t + 1) / 6.0f; const float b3 = t3 / 6.0f; - // calculate the x,y and z of the curve point + // Calculate coordinates of the curve point curr->x = b0 * dmSplineGetPoint(points, npoints, cv + 0)->x + b1 * dmSplineGetPoint(points, npoints, cv + 1)->x + b2 * dmSplineGetPoint(points, npoints, cv + 2)->x +