mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-14 06:45:17 +00:00
MathUtil: add PI constant
This commit is contained in:
parent
2a069e76a5
commit
55f5d0f777
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
namespace MathUtil {
|
namespace MathUtil {
|
||||||
|
|
||||||
|
static constexpr float PI = 3.14159265f;
|
||||||
|
|
||||||
inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1,
|
inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1,
|
||||||
unsigned length1) {
|
unsigned length1) {
|
||||||
return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));
|
return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));
|
||||||
|
|
Loading…
Reference in a new issue