summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/AffineTransform.h
AgeCommit message (Collapse)Author
2023-04-27LibGfx: Add AffineTransform::rotation()Andreas Kling
Extracts the rotation from a 2D matrix.
2023-04-12LibGfx: Add AffineTransform::skew_radians()MacDue
2022-12-07Meta+Userland: Pass Gfx::IntSize by valueMacDue
Just two ints like Gfx::IntPoint.
2022-12-07Meta+Userland: Pass Gfx::FloatPoint by valueMacDue
Just a small 8-byte value like Gfx::IntPoint.
2022-12-07Meta+Userland: Pass Gfx::IntPoint by valueMacDue
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
2022-10-22LibGfx: Mark `AffineTransform<T>::map()` as only working for numeric `T`Sam Atkins
The implementations for these methods is manually defined in the .cpp file for `int` and `float`, meaning that other `T` values would fail - but only once we got to the linking stage. This patch makes the error happen much earlier, so it's more obvious.
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-04-10LibGfx: Add AffineTransform::is_identity_or_translation()Andreas Kling
This will allow us to implement fast paths in cases where a simple translation can be handled faster than a full affine transform.
2022-04-07LibGfx: Add AffineTransform::map_to_quad(Rect)Andreas Kling
Unlike map(Rect) which returns a Rect, mapping a Rect to a Quad allows us to represent the actual result of mapping all four corners of the Rect through the matrix.
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-18LibGfx: Add AffineTransform::inverseSimon Wanner
2021-11-17AK: Convert AK::Format formatting helpers to returning ErrorOr<void>Andreas Kling
This isn't a complete conversion to ErrorOr<void>, but a good chunk. The end goal here is to propagate buffer allocation failures to the caller, and allow the use of TRY() with formatting functions.
2021-05-02LibGfx: Add some helper methods to AffineTransformMatthew Olsson
Also makes some basic getters ALWAYS_INLINE and [[nodiscard]], as well as fixing as error with the map method.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-03-12Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)Andreas Kling
Good-bye LogStream. Long live AK::Format!
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling