/*============================================================================= Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_DARKROOM_CAMERAS_CALCULATE_HPP #define SPROUT_DARKROOM_CAMERAS_CALCULATE_HPP #include #include namespace sprout { namespace darkroom { namespace cameras { // // calculate_result // template struct calculate_result : public sprout::identity {}; template struct calculate_result : public sprout::darkroom::cameras::calculate_result {}; template struct calculate_result : public sprout::darkroom::cameras::calculate_result {}; template struct calculate_result : public sprout::darkroom::cameras::calculate_result {}; // // calculate // template inline SPROUT_CONSTEXPR typename sprout::darkroom::cameras::calculate_result::type calculate(Camera const& camera, Unit2D const& x, Unit2D const& y, Unit2D const& width, Unit2D const& height) { return camera(x, y, width, height); } } // namespace cameras } // namespace darkroom } // namespace sprout #endif // #ifndef SPROUT_DARKROOM_CAMERAS_CALCULATE_HPP