X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FFunctionValues.hs;h=ed83f73336eac561b7d2450061ecd2bcf5709051;hb=d60de7d5ab06d6c3261826b843ee89cf12ab9667;hp=28f596b618e5dcd3c3c8acfb92103c2208691818;hpb=00a4dc471c4dc1c48c6012cc897c37d14a2f1644;p=spline3.git diff --git a/src/FunctionValues.hs b/src/FunctionValues.hs index 28f596b..ed83f73 100644 --- a/src/FunctionValues.hs +++ b/src/FunctionValues.hs @@ -8,8 +8,9 @@ import Prelude hiding (LT) import Cardinal -- | The FunctionValues type represents the value of our function f at --- the 27 points surrounding the center of a cube. Each value of f --- can be accessed by the name of its direction. +-- the 27 points surrounding (and including) the center of a +-- cube. Each value of f can be accessed by the name of its +-- direction. data FunctionValues = FunctionValues { front :: Double, back :: Double, @@ -49,7 +50,7 @@ empty_values = -- FunctionValues type. Given a 'Cardinal' direction and a -- 'FunctionValues' object, eval will return the value of the -- function f in that 'Cardinal' direction. Note that 'Cardinal' can --- be a composite type; eval is what performs the "arithmetic" on +-- be a composite type; eval is what performs the \"arithmetic\" on -- 'Cardinal' directions. eval :: FunctionValues -> Cardinal -> Double eval f F = front f