summaryrefslogtreecommitdiffstats
path: root/src/common/math_util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-15common: Make use of [[nodiscard]] where applicableLioncash1-5/+5
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
2020-08-13General: Tidy up clang-format warnings part 2Lioncash1-1/+1
2020-02-28common/math_util: Support float type rectanglesReinUsesLisp1-2/+14
2019-05-31common/math_util: Provide a template deduction guide for Common::RectangleLioncash1-0/+3
Allows for things such as: auto rect = Common::Rectangle{0, 0, 0, 0}; as opposed to being required to explicitly write out the underlying type, such as: auto rect = Common::Rectangle<int>{0, 0, 0, 0}; The only requirement for the deduction is that all constructor arguments be the same type.
2019-02-27common/math_util: Move contents into the Common namespaceLioncash1-2/+2
These types are within the common library, so they should be within the Common namespace.
2018-11-21common/math_util: Simplify std::make_signed usages to std::make_signed_tLioncash1-2/+2
Gets rid of the need to use typename to access the ::type alias.
2018-11-21common/math_util: Make Rectangle's constructors constexprLioncash1-2/+2
Allows objects that contain rectangle instances to be constexpr constructible as well.
2018-11-21common/math_util: Remove unnecessary static from PILioncash1-1/+1
const/constexpr variables have internal linkage by default.
2018-11-21common/math_util: Remove unused IntervalsIntersect() functionLioncash1-6/+0
This hasn't been used since the project started, so we may as well get rid of it to keep it from bit rotting.
2018-08-02math_util: Always initialize members of RectangleLioncash1-5/+5
Prevents potentially using the members uninitialized.
2018-04-20math_util: Remove the Clamp() functionLioncash1-5/+0
C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
2016-12-26MathUtil: add PI constantwwylele1-0/+2
2016-11-12Round the rectangle size to prevent float to int casting issuesJames Rowe1-2/+2
And other minor style changes
2016-11-05Add default hotkey to swap primary screens.James Rowe1-4/+2
Also minor style changes
2016-11-05Rework frame layouts to use a max rectangle instead of hardcoded calculationsJames Rowe1-0/+12
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-4/+2
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-14/+19
2015-06-09Render-to-texture flush, interval math fixtfarley1-1/+1
2015-05-23OpenGL renderertfarley1-0/+4
2015-05-14Common: Remove unused cruft from math_util, and remove a duplicated Rect class in common_types.Emmanuel Gil Peyrot1-171/+3
2015-05-07Common: Remove common.hYuri Kunde Schlesner1-1/+1
2014-12-21License changepurpasmart961-2/+2
2014-11-18MathUtil: Make Rectangle work with unsigned types.Tony Wasserka1-4/+5
2014-08-19Common: Add a clamp function to math_utils.hLioncash1-0/+7
2014-08-17Common: Move header guards over to pragma onceLioncash1-5/+1
Also replaced C headers with the C++ equivalent ones
2014-04-09fixed project includes to use new directory structurebunnei1-1/+1
2014-04-09got rid of 'src' folders in each sub-projectbunnei1-0/+0
2014-04-02convert tabs to spacesbunnei1-102/+102
2013-09-05replaced common code with dolphin commonShizZy1-0/+200