mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibGfx: Add elliptical curves to Path
This commit is contained in:
parent
22f0953fe2
commit
1cffde7635
6 changed files with 261 additions and 61 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue