8#include <QRandomGenerator>
54 , m_targetVariation(0)
55 , m_proportionalMagnitude(
false)
57 , m_magnitudeVariation(0)
73 qWarning() <<
"Directed vector is not a child of the emitter. Mapping of target item coordinates may fail.";
89 if (m_proportionalMagnitude)
91 ret.setX(mag * std::cos(theta));
92 ret.setY(mag * std::sin(theta));
98#include "moc_qquicktargetdirection_p.cpp"
QObject * parent() const
Returns a pointer to the parent object.
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
qreal x
\qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item...
qreal y
Defines the item's y position relative to its parent.
qreal width
This property holds the width of this item.
qreal height
This property holds the height of this item.
QQuickTargetDirection(QObject *parent=nullptr)
\qmltype TargetDirection \instantiates QQuickTargetDirection \inqmlmodule QtQuick....
QPointF sample(const QPointF &from) override
static Q_DECL_CONST_FUNCTION QRandomGenerator * global()
\threadsafe
Combined button and popup list for selecting options.
auto qHypot(qfloat16 x, qfloat16 y)