1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

LibGfx: Add Gfx::Quad<T> to represent arbitrary quadrilaterals

This comes with a very barebones API for now. You can ask for the
bounding rect of the quad, and also check if a point is inside of it.
This commit is contained in:
Andreas Kling 2022-04-07 14:02:28 +02:00
parent 1f346a490b
commit 5d8f4ab878
2 changed files with 60 additions and 0 deletions

View file

@ -41,6 +41,9 @@ class Size;
template<typename T>
class Rect;
template<typename T>
class Quad;
using IntLine = Line<int>;
using FloatLine = Line<float>;
@ -53,6 +56,8 @@ using FloatPoint = Point<float>;
using IntSize = Size<int>;
using FloatSize = Size<float>;
using FloatQuad = Quad<float>;
enum class BitmapFormat;
enum class ColorRole;
enum class TextAlignment;