James Tonkin wrote:
>
> Well, it would help if I had of put the correct formula down in the first
> place... sorry bout that. Here's the full derivation
>
> (t + (1-t) ) ^3
>
> = (t + (1-t)) * (t + (1-t)) * (t + (1-t))
>
> = [ t*t + t*(1-t) + (1-t)*t + (1-t)*(1-t)] * [ t + (1-t)]
>
> = [ t^2 + 2 * t * (1-t) + (1-t)^2] * [t + (1-t)]
>
> = ( t^2 * t) + (2 * t * (1-t) * t) + ( (1-t)^2 * t) + (t^2 * (1-t))
> + (2 * t * (1-t) * (1-t) ) + ( (1-t)^2 * (1-t))
>
> = t^3 + ( 2 * t^2 * (1-t) ) + (t * (1-t)^2) + (t^2 * (1-t))
> + ( 2 * t * (1-t)^2) + (1-t)^3
>
> = t^3 + (3 * t^2 * (1-t)) + (3 * t * (1-t)^2) + (1-t)^3
>
> So the 4 terms in the last line correspond to the 4 blending functions.
>
Thanks, exactly what I wanted to know.
Remco Poelstra
Post a reply to this message
|