1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:07:34 +00:00

LibGfx: Add elliptical curves to Path

This commit is contained in:
Matthew Olsson 2020-07-21 23:46:15 -07:00 committed by Andreas Kling
parent 22f0953fe2
commit 1cffde7635
6 changed files with 261 additions and 61 deletions

View file

@ -26,11 +26,18 @@
#include <AK/String.h>
#include <LibGfx/Point.h>
#include <LibGfx/FloatPoint.h>
#include <LibIPC/Decoder.h>
#include <LibIPC/Encoder.h>
namespace Gfx {
IntPoint::IntPoint(const FloatPoint& other)
: m_x(other.x())
, m_y(other.y())
{
}
String IntPoint::to_string() const
{
return String::format("[%d,%d]", x(), y());