mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add sprout/math/comparison.hpp
This commit is contained in:
parent
d51bd06eda
commit
1c65d59971
20 changed files with 379 additions and 109 deletions
|
@ -51,14 +51,11 @@ namespace sprout {
|
|||
unit_type const& v
|
||||
) const
|
||||
{
|
||||
using sprout::sqrt;
|
||||
using sprout::sin;
|
||||
using sprout::cos;
|
||||
return transform_1(
|
||||
c,
|
||||
u * cos(rotate_) - v * sin(rotate_),
|
||||
u * sin(rotate_) + v * cos(rotate_),
|
||||
sqrt(
|
||||
u * sprout::cos(rotate_) - v * sprout::sin(rotate_),
|
||||
u * sprout::sin(rotate_) + v * sprout::cos(rotate_),
|
||||
sprout::sqrt(
|
||||
sprout::darkroom::coords::x(c) * sprout::darkroom::coords::x(c)
|
||||
+ sprout::darkroom::coords::z(c) * sprout::darkroom::coords::z(c)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue