summaryrefslogtreecommitdiffstats
path: root/src/common/math_util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-281-3/+3
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* hle: nvflinger: Merge Rect with Common::Rectangle.bunnei2022-03-251-5/+45
|
* Video Core: fix building for GCC.Fernando Sahmkow2021-11-161-2/+2
|
* core: Fix clang build pt.3Lioncash2020-10-221-2/+2
| | | | Should finally resolve building with clang.
* Revert "core: Fix clang build"bunnei2020-10-211-2/+2
|
* Merge pull request #4796 from lioncash/clangLC2020-10-211-2/+2
|\ | | | | core: Fix clang build
| * core: Fix clang buildLioncash2020-10-181-2/+2
| | | | | | | | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* | input_common/CMakeLists: Make some warnings errorsLioncash2020-10-161-2/+2
|/ | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* input_common/motion_input: Make use of Common::PI constantMorph2020-09-021-1/+1
| | | | Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
* common: Make use of [[nodiscard]] where applicableLioncash2020-08-151-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.
* General: Tidy up clang-format warnings part 2Lioncash2020-08-131-1/+1
|
* common/math_util: Support float type rectanglesReinUsesLisp2020-02-281-2/+14
|
* common/math_util: Provide a template deduction guide for Common::RectangleLioncash2019-05-311-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.
* common/math_util: Move contents into the Common namespaceLioncash2019-02-271-2/+2
| | | | | These types are within the common library, so they should be within the Common namespace.
* common/math_util: Simplify std::make_signed usages to std::make_signed_tLioncash2018-11-211-2/+2
| | | | Gets rid of the need to use typename to access the ::type alias.
* common/math_util: Make Rectangle's constructors constexprLioncash2018-11-211-2/+2
| | | | | Allows objects that contain rectangle instances to be constexpr constructible as well.
* common/math_util: Remove unnecessary static from PILioncash2018-11-211-1/+1
| | | | const/constexpr variables have internal linkage by default.
* common/math_util: Remove unused IntervalsIntersect() functionLioncash2018-11-211-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.
* math_util: Always initialize members of RectangleLioncash2018-08-021-5/+5
| | | | Prevents potentially using the members uninitialized.
* math_util: Remove the Clamp() functionLioncash2018-04-201-5/+0
| | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
* MathUtil: add PI constantwwylele2016-12-261-0/+2
|
* Round the rectangle size to prevent float to int casting issuesJames Rowe2016-11-121-2/+2
| | | | And other minor style changes
* Add default hotkey to swap primary screens.James Rowe2016-11-051-4/+2
| | | | Also minor style changes
* Rework frame layouts to use a max rectangle instead of hardcoded calculationsJames Rowe2016-11-051-0/+12
|
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-4/+2
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-14/+19
|
* Render-to-texture flush, interval math fixtfarley2015-06-091-1/+1
|
* OpenGL renderertfarley2015-05-231-0/+4
|
* Common: Remove unused cruft from math_util, and remove a duplicated Rect class in common_types.Emmanuel Gil Peyrot2015-05-141-171/+3
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-1/+1
|
* License changepurpasmart962014-12-211-2/+2
|
* MathUtil: Make Rectangle work with unsigned types.Tony Wasserka2014-11-181-4/+5
|
* Common: Add a clamp function to math_utils.hLioncash2014-08-191-0/+7
|
* Common: Move header guards over to pragma onceLioncash2014-08-171-5/+1
| | | | Also replaced C headers with the C++ equivalent ones
* fixed project includes to use new directory structurebunnei2014-04-091-1/+1
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-091-0/+200