Changeset 1a92cf for src/samples/bspline.hpp
- Timestamp:
- Apr 29, 2012, 10:50:41 AM (14 years ago)
- Children:
- 39a6d9
- Parents:
- 4571da
- File:
-
- 1 edited
-
src/samples/bspline.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/samples/bspline.hpp
r4571da r1a92cf 91 91 } 92 92 93 vmg_float EvaluateField(const vmg_float& val) const 94 { 95 for (unsigned int i=0; i<intervals.size(); ++i) 96 if (val < intervals[i]) 97 return field_nom[i](val) / field_denom[i](val); 98 return 0.0; 99 } 100 93 101 const vmg_float& GetAntiDerivativeAtZero() const 94 102 { … … 99 107 std::vector<Polynomial> spline_nom, spline_denom; 100 108 std::vector<Polynomial> potential_nom, potential_denom; 109 std::vector<Polynomial> field_nom, field_denom; 101 110 vmg_float antid; 102 111 std::vector<vmg_float> intervals;
Note:
See TracChangeset
for help on using the changeset viewer.
