From dad087cd69627897da31a531c9da989c661866cc Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Thu, 12 Dec 2013 23:38:33 +0900 Subject: [PATCH] fix README --- README.rst | 2 +- sprout/darkroom/coords/vector.hpp | 56 ------------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) diff --git a/README.rst b/README.rst index bea3a5b6..2e652458 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Sprout C++ Libraries Welcome to the Sprout C++ Libraries ******************************************************************************* -| C++11 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others. +| C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others. ******************************************************************************* Library Documentation diff --git a/sprout/darkroom/coords/vector.hpp b/sprout/darkroom/coords/vector.hpp index 2f50b8f9..ea507515 100644 --- a/sprout/darkroom/coords/vector.hpp +++ b/sprout/darkroom/coords/vector.hpp @@ -218,62 +218,6 @@ namespace sprout { // // refract // -// namespace detail { -// template -// inline SPROUT_CONSTEXPR Incident -// refract_impl_1(Incident const& incid, Normal const& nor, Refraction const& eta, InNor const& t, K const& k) { -// return k < 0 ? sprout::tuples::remake(incid, 0, 0, 0) -// : sprout::darkroom::coords::sub( -// sprout::darkroom::coords::scale(incid, eta), -// sprout::darkroom::coords::scale(nor, eta * t * sprout::sqrt(k)) -// ) -// ; -// } -// template -// inline SPROUT_CONSTEXPR Incident -// refract_impl(Incident const& incid, Normal const& nor, Refraction const& eta, InNor const& t) { -// return sprout::darkroom::coords::detail::refract_impl_1( -// incid, nor, eta, -// t, 1 - eta * eta * (1 - t * t) -// ); -// } -// } // namespace detail -// template -// inline SPROUT_CONSTEXPR Incident -// refract(Incident const& incid, Normal const& nor, Refraction const& eta) { -// return sprout::darkroom::coords::detail::refract_impl( -// incid, nor, eta, -// sprout::darkroom::coords::dot(incid, nor) -// ); -// } -// namespace detail { -// template -// inline SPROUT_CONSTEXPR Incident -// refract_impl_1(Incident const& incid, Normal const& nor, Refraction const& eta, InNor const& t, K const& k) { -// return k < 0 ? sprout::tuples::remake(incid, 0, 0, 0) -// : sprout::darkroom::coords::sub( -// sprout::darkroom::coords::scale(sprout::darkroom::coords::sub(incid, sprout::darkroom::coords::scale(nor, t)), eta), -// sprout::darkroom::coords::scale(nor, eta * t * sprout::math::sqrt(k)) -// ) -// ; -// } -// template -// inline SPROUT_CONSTEXPR Incident -// refract_impl(Incident const& incid, Normal const& nor, Refraction const& eta, InNor const& t) { -// return sprout::darkroom::coords::detail::refract_impl_1( -// incid, nor, eta, -// t, 1 - eta * eta * (1 - t * t) -// ); -// } -// } // namespace detail -// template -// inline SPROUT_CONSTEXPR Incident -// refract(Incident const& incid, Normal const& nor, Refraction const& eta) { -// return sprout::darkroom::coords::detail::refract_impl( -// incid, nor, eta, -// sprout::darkroom::coords::dot(incid, nor) -// ); -// } namespace detail { template inline SPROUT_CONSTEXPR Incident