123456789101112131415161718192021222324252627282930 |
- #include <iostream>
- #include <iterator>
- #include "ra/test.hh"
- using std::cout, std::endl, ra::TestRecorder;
- using real = double;
- int main()
- {
- TestRecorder tr;
- tr.section("std");
- {
- ra::Small<real, 3> a = { 1, 2, 3 };
- ra::Small<real, 3> b = { 4, 5, 6 };
- cout << lerp(a, b, 0.5) << endl;
- cout << lerp(4., 1., 0.5) << endl;
- }
- return tr.summary();
- }
|