summaryrefslogtreecommitdiff
path: root/src/common/vector_math.h
AgeCommit message (Collapse)Author
2023-05-05input_common: Add property to invert an axis buttonNarr the Reg
2023-05-05yuzu: Add motion preview to controller inputNarr the Reg
2023-01-29Move to Clang Format 15Levi Behunin
Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2021-09-24general: Update style to clang-format-12ameerj
2020-10-15input_common/CMakeLists: Make some warnings errorsLioncash
Makes the input_common code warnings consistent with the rest of the codebase.
2020-08-15common: Make use of [[nodiscard]] where applicableLioncash
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.
2019-02-26common/vector_math: Move Vec[x] types into the Common namespaceLioncash
These types are within the common library, so they should be using the Common namespace.
2018-08-08vector_math: Use variable template version of is_signed in Vec classesLioncash
Same behavior, less code
2018-08-07vector_math: Remove unimplemented function prototypesLioncash
2018-08-07vector_math: Make functions constexpr where applicableLioncash
2018-08-07vector_math: Convert typedefs to type aliasesLioncash
2018-05-01vector_math: Ensure members are always initializedLioncash
Ensures that values are always in a well-defined state.
2018-04-19vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]Lioncash
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).
2017-09-30Fixed type conversion ambiguityHuw Pascoe
2017-09-27Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.Subv
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
2017-07-11vector_math: remove dead template parameterwwylele
2017-07-11vector_math: remove broken SFINAE stuffwwylele
this was originally added to eliminate warnings on MSVC, but it doesn't work for custom types.
2017-07-11SwRasterizer: Flip the vertex quaternions before clipping (if necessary).Subv
2017-05-20pica/swrasterizer: implement procedural texturewwylele
2016-12-26vector math: add implementation of Length and Normalizewwylele
2016-09-29Common: Remove dangerous Vec[234] array constructorsYuri Kunde Schlesner
They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-03-18vector_math: Add missing member in Vec4's SetZero functionLioncash
2015-11-12fix failure on gcc and clangwwylele
2015-11-12disable unary minus when the type is not signedwwylele
silent warning C4146 on msvc
2015-05-30Move video_core/math.h to common/vector_math.harchshift
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.