Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_dab_shape.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Nishant Rodrigues <nishantjr@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8#include <QtGlobal>
9
11 qreal m_scale;
12 qreal m_ratio;
14
15public:
16
18 : m_scale(1.0)
19 , m_ratio(1.0)
20 , m_rotation(0.0)
21 {}
22 KisDabShape(qreal scale, qreal ratio, qreal rotation)
23 : m_scale(scale)
24 , m_ratio(ratio)
26 {}
27
28 bool operator==(const KisDabShape &rhs) const {
29 return
33 }
34
35 qreal scale() const { return m_scale; }
36 qreal scaleX() const { return scale(); }
37 qreal scaleY() const { return m_scale * m_ratio; }
38 qreal ratio() const { return m_ratio; }
39 qreal rotation() const { return m_rotation; }
40};
qreal scaleY() const
bool operator==(const KisDabShape &rhs) const
qreal scale() const
qreal scaleX() const
KisDabShape(qreal scale, qreal ratio, qreal rotation)
qreal rotation() const
qreal ratio() const
static bool qFuzzyCompare(half p1, half p2)