summaryrefslogtreecommitdiff
path: root/src/common/math_util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chore: add missing SPDX tagsGravatar Andrea Pappacoda2022-04-281-3/+3
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* hle: nvflinger: Merge Rect with Common::Rectangle.Gravatar bunnei2022-03-241-5/+45
|
* Video Core: fix building for GCC.Gravatar Fernando Sahmkow2021-11-161-2/+2
|
* core: Fix clang build pt.3Gravatar Lioncash2020-10-211-2/+2
| | | | Should finally resolve building with clang.
* Revert "core: Fix clang build"Gravatar bunnei2020-10-201-2/+2
|
* Merge pull request #4796 from lioncash/clangGravatar LC2020-10-201-2/+2
|\ | | | | core: Fix clang build
| * core: Fix clang buildGravatar Lioncash2020-10-171-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 errorsGravatar Lioncash2020-10-151-2/+2
|/ | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* input_common/motion_input: Make use of Common::PI constantGravatar Morph2020-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 applicableGravatar Lioncash2020-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 2Gravatar Lioncash2020-08-131-1/+1
|
* common/math_util: Support float type rectanglesGravatar ReinUsesLisp2020-02-281-2/+14
|
* common/math_util: Provide a template deduction guide for Common::RectangleGravatar Lioncash2019-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 namespaceGravatar Lioncash2019-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_tGravatar Lioncash2018-11-211-2/+2
| | | | Gets rid of the need to use typename to access the ::type alias.
* common/math_util: Make Rectangle's constructors constexprGravatar Lioncash2018-11-211-2/+2
| | | | | Allows objects that contain rectangle instances to be constexpr constructible as well.
* common/math_util: Remove unnecessary static from PIGravatar Lioncash2018-11-211-1/+1
| | | | const/constexpr variables have internal linkage by default.
* common/math_util: Remove unused IntervalsIntersect() functionGravatar Lioncash2018-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 RectangleGravatar Lioncash2018-08-021-5/+5
| | | | Prevents potentially using the members uninitialized.
* math_util: Remove the Clamp() functionGravatar Lioncash2018-04-201-5/+0
| | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
* MathUtil: add PI constantGravatar wwylele2016-12-261-0/+2
|
* Round the rectangle size to prevent float to int casting issuesGravatar James Rowe2016-11-121-2/+2
| | | | And other minor style changes
* Add default hotkey to swap primary screens.Gravatar James Rowe2016-11-051-4/+2
| | | | Also minor style changes
* Rework frame layouts to use a max rectangle instead of hardcoded calculationsGravatar James Rowe2016-11-051-0/+12
|
* Manually tweak source formatting and then re-run clang-formatGravatar Yuri Kunde Schlesner2016-09-181-4/+2
|
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-14/+19
|
* Render-to-texture flush, interval math fixGravatar tfarley2015-06-081-1/+1
|
* OpenGL rendererGravatar tfarley2015-05-221-0/+4
|
* Common: Remove unused cruft from math_util, and remove a duplicated Rect ↵Gravatar Emmanuel Gil Peyrot2015-05-141-171/+3
| | | | class in common_types.
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-071-1/+1
|
* License changeGravatar purpasmart962014-12-201-2/+2
|
* MathUtil: Make Rectangle work with unsigned types.Gravatar Tony Wasserka2014-11-181-4/+5
|
* Common: Add a clamp function to math_utils.hGravatar Lioncash2014-08-191-0/+7
|
* Common: Move header guards over to pragma onceGravatar Lioncash2014-08-171-5/+1
| | | | Also replaced C headers with the C++ equivalent ones
* fixed project includes to use new directory structureGravatar bunnei2014-04-081-1/+1
|
* got rid of 'src' folders in each sub-projectGravatar bunnei2014-04-081-0/+200