Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /trunk/doc/report/basis.tex
 [diderot] / trunk / doc / report / basis.tex

# Diff of /trunk/doc/report/basis.tex

revision 1918, Thu Jun 7 12:37:38 2012 UTC revision 1919, Thu Jun 7 22:43:16 2012 UTC
# Line 38  Line 38
38    \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real})}{\tensorTy{\sigma}}    \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real})}{\tensorTy{\sigma}}
39      linear interpolationover the interval $[0,1]$:      linear interpolationover the interval $[0,1]$:
40      \begin{displaymath}      \begin{displaymath}
41        \mathtt{lerp} (x, y, t) = x(1-t) + a        \mathtt{lerp} (x, y, t) = x(1-t) + y
42      \end{displaymath}%      \end{displaymath}%
43    \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real},\,\mkw{real},\,\mkw{real})}{\tensorTy{\sigma}}    \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real},\,\mkw{real},\,\mkw{real})}{\tensorTy{\sigma}}
44      linear interpolation over an arbitrary range:      linear interpolation over the interval $[\mathit{lo},\mathit{hi}]$:
45      \begin{displaymath}      \begin{displaymath}
46        \mathtt{lerp} (x, y, \mathit{lo}, t, \mathit{hi}) =        \mathtt{lerp} (x, y, \mathit{lo}, t, \mathit{hi}) =
47          \mathtt{lerp}\left({x, y, \frac{t - \mathit{lo}}{\mathit{hi} - \mathit{lo}}}\right)          \mathtt{lerp}\left({x, y, \frac{t - \mathit{lo}}{\mathit{hi} - \mathit{lo}}}\right)

Legend:
 Removed from v.1918 changed lines Added in v.1919