◆異なる要素数から構築する
• sprout::tuple 解決策その2
–タプルの再帰的な変換が可能になる
auto x = tuple< tuple< int >, int >(make_tuple(1), 2);
tuple< tuple< int, int >, int, int > y = recursive_flex(x);
87.
◆異なる要素数から構築する
• sprout::tuple 解決策その2
–タプルの再帰的な変換が可能になる
auto x = tuple< tuple< int >, int >(make_tuple(1), 2);
tuple< tuple< int, int >, int, int > y = recursive_flex(x);
入れ⼦になったタプルの
増えた引数
トップレベルのタプルの
増えた引数
◆カメラの定義
• Camera コンセプトの要件
–cam.operator()(x, y, width, height) の結
果が Ray を返す
• (x, y, width, height はピクセルの座標)
• 視点から対象ピクセルへの光線を決定できるもの
はカメラである
– Camera はシーン中に一つしかない