Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1246, Wed May 18 21:27:33 2011 UTC revision 1247, Wed May 18 21:27:46 2011 UTC
# Line 35  Line 35 
35      loads the named image file, which should be a Nrrd file.      loads the named image file, which should be a Nrrd file.
36      Note that this function may only be used in the global initialization part of a Diderot      Note that this function may only be used in the global initialization part of a Diderot
37      program.      program.
38      \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real})}{\tensorTy{\sigma}}
39        linear interpolationover the interval $[0,1]$:
40        \begin{displaymath}
41          \mathtt{lerp} (x, y, t) = x(1-t) + a
42        \end{displaymath}%
43      \PFNSPEC{lerp}{\sigma}{(\tensorTy{\sigma},\,\tensorTy{\sigma},\,\mkw{real},\,\mkw{real},\,\mkw{real})}{\tensorTy{\sigma}}
44        linear interpolation over an arbitrary range:
45        \begin{displaymath}
46          \mathtt{lerp} (x, y, \mathit{lo}, t, \mathit{hi}) =
47            \mathtt{lerp}\left({x, y, \frac{t - \mathit{lo}}{\mathit{hi} - \mathit{lo}}}\right)
48        \end{displaymath}%
49    \FNSPEC{max}{(\mkw{real},\,\mkw{real})}{\mkw{real}}    \FNSPEC{max}{(\mkw{real},\,\mkw{real})}{\mkw{real}}
50      returns the minimum of its two arguments.      returns the minimum of its two arguments.
51    \FNSPEC{min}{(\mkw{real},\,\mkw{real})}{\mkw{real}}    \FNSPEC{min}{(\mkw{real},\,\mkw{real})}{\mkw{real}}
52      returns the maximum of its two arguments.      returns the maximum of its two arguments.
53    \FNSPEC{modulate}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{tensor}[d]}    \PFNSPEC{modulate}{d}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{tensor}[d]}
54        component-wise multiplication of two vectors.
55      \PFNSPEC{normalize}{d}{\mkw{tensor}[d]}{\mkw{tensor}[d]}
56        normalize a vector to a unit vector.
57    \FNSPEC{pow}{(\mkw{real},\,\mkw{real})}{\mkw{real}}    \FNSPEC{pow}{(\mkw{real},\,\mkw{real})}{\mkw{real}}
58      returns the first argument raised to the power of the second argument.      returns the first argument raised to the power of the second argument.
59    \PFNSPEC{principleEvec}{d}{\mkw{tensor}[d,d]}{\mkw{tensor}[d]}    \PFNSPEC{principleEvec}{d}{\mkw{tensor}[d,d]}{\mkw{tensor}[d]}

Legend:
Removed from v.1246  
changed lines
  Added in v.1247

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0