Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/vis12/doc/report/basis.tex
 [diderot] / branches / vis12 / doc / report / basis.tex

# Diff of /branches/vis12/doc/report/basis.tex

revision 1685, Sun Jan 22 15:23:36 2012 UTC revision 1946, Fri Jul 6 20:18:03 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.1685 changed lines Added in v.1946