mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix math functions
This commit is contained in:
parent
2e2b6c96ab
commit
ffb876c930
23 changed files with 85 additions and 37 deletions
|
@ -91,6 +91,7 @@ namespace sprout {
|
|||
}
|
||||
//
|
||||
// half
|
||||
// quarter
|
||||
// third
|
||||
// twothirds
|
||||
//
|
||||
|
@ -99,6 +100,10 @@ namespace sprout {
|
|||
return 0.5L;
|
||||
}
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR T quarter() {
|
||||
return 0.25L;
|
||||
}
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR T third() {
|
||||
return 0.33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333L;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue