summaryrefslogtreecommitdiffstats
path: root/src/common/vector_math.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_common: Add property to invert an axis buttonNarr the Reg2023-05-061-1/+1
|
* yuzu: Add motion preview to controller inputNarr the Reg2023-05-051-0/+14
|
* Move to Clang Format 15Levi Behunin2023-01-301-11/+5
| | | | | | Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-281-29/+3
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* general: Update style to clang-format-12ameerj2021-09-241-2/+2
|
* input_common/CMakeLists: Make some warnings errorsLioncash2020-10-161-9/+66
| | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* common: Make use of [[nodiscard]] where applicableLioncash2020-08-151-101/+103
| | | | | | 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.
* common/vector_math: Move Vec[x] types into the Common namespaceLioncash2019-02-271-2/+2
| | | | | These types are within the common library, so they should be using the Common namespace.
* vector_math: Use variable template version of is_signed in Vec classesLioncash2018-08-081-3/+3
| | | | Same behavior, less code
* vector_math: Remove unimplemented function prototypesLioncash2018-08-081-23/+0
|
* vector_math: Make functions constexpr where applicableLioncash2018-08-081-154/+179
|
* vector_math: Convert typedefs to type aliasesLioncash2018-08-081-3/+3
|
* vector_math: Ensure members are always initializedLioncash2018-05-021-9/+9
| | | | Ensures that values are always in a well-defined state.
* vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]Lioncash2018-04-201-30/+0
| | | | These are all unused and the Write() ones should arguably not even be in the interface. There are better ways to provide this if we ever need it (like iterators).
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-9/+3
|
* Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.Subv2017-09-271-4/+8
| | | | | It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3
* vector_math: remove dead template parameterwwylele2017-07-111-1/+1
|
* vector_math: remove broken SFINAE stuffwwylele2017-07-111-3/+2
| | | | this was originally added to eliminate warnings on MSVC, but it doesn't work for custom types.
* SwRasterizer: Flip the vertex quaternions before clipping (if necessary).Subv2017-07-111-1/+1
|
* pica/swrasterizer: implement procedural texturewwylele2017-05-201-0/+10
|
* vector math: add implementation of Length and Normalizewwylele2016-12-261-0/+19
|
* Common: Remove dangerous Vec[234] array constructorsYuri Kunde Schlesner2016-09-301-3/+0
| | | | | They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-12/+6
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-325/+382
|
* vector_math: Add missing member in Vec4's SetZero functionLioncash2016-03-181-1/+4
|
* fix failure on gcc and clangwwylele2015-11-121-3/+3
|
* disable unary minus when the type is not signedwwylele2015-11-121-0/+4
| | | | silent warning C4146 on msvc
* Move video_core/math.h to common/vector_math.harchshift2015-05-301-0/+640
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.