Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQuickVector2DValueType Class Reference

#include <qquickvaluetypes_p.h>

+ Collaboration diagram for QQuickVector2DValueType:

Public Member Functions

Q_INVOKABLE QString toString () const
 
qreal x () const
 
qreal y () const
 
void setX (qreal)
 
void setY (qreal)
 
Q_INVOKABLE qreal dotProduct (const QVector2D &vec) const
 
Q_INVOKABLE QVector2D times (const QVector2D &vec) const
 
Q_INVOKABLE QVector2D times (qreal scalar) const
 
Q_INVOKABLE QVector2D plus (const QVector2D &vec) const
 
Q_INVOKABLE QVector2D minus (const QVector2D &vec) const
 
Q_INVOKABLE QVector2D normalized () const
 
Q_INVOKABLE qreal length () const
 
Q_INVOKABLE QVector3D toVector3d () const
 
Q_INVOKABLE QVector4D toVector4d () const
 
Q_INVOKABLE bool fuzzyEquals (const QVector2D &vec, qreal epsilon) const
 
Q_INVOKABLE bool fuzzyEquals (const QVector2D &vec) const
 
 operator QVector2D () const
 

Static Public Member Functions

static QVariant create (const QJSValue &params)
 

Properties

qreal x
 
qreal y
 

Detailed Description

Definition at line 90 of file qquickvaluetypes_p.h.

Member Function Documentation

◆ create()

QVariant QQuickVector2DValueType::create ( const QJSValue params)
static

Definition at line 203 of file qquickvaluetypes.cpp.

◆ dotProduct()

qreal QQuickVector2DValueType::dotProduct ( const QVector2D vec) const

Definition at line 237 of file qquickvaluetypes.cpp.

References QVector2D::dotProduct().

+ Here is the call graph for this function:

◆ fuzzyEquals() [1/2]

bool QQuickVector2DValueType::fuzzyEquals ( const QVector2D vec) const

Definition at line 292 of file qquickvaluetypes.cpp.

References qFuzzyCompare().

+ Here is the call graph for this function:

◆ fuzzyEquals() [2/2]

bool QQuickVector2DValueType::fuzzyEquals ( const QVector2D vec,
qreal  epsilon 
) const

Definition at line 282 of file qquickvaluetypes.cpp.

References epsilon, qAbs(), QVector2D::x(), and QVector2D::y().

+ Here is the call graph for this function:

◆ length()

qreal QQuickVector2DValueType::length ( ) const

Definition at line 267 of file qquickvaluetypes.cpp.

◆ minus()

QVector2D QQuickVector2DValueType::minus ( const QVector2D vec) const

Definition at line 257 of file qquickvaluetypes.cpp.

◆ normalized()

QVector2D QQuickVector2DValueType::normalized ( ) const

Definition at line 262 of file qquickvaluetypes.cpp.

References QVector2D::normalized().

+ Here is the call graph for this function:

◆ operator QVector2D()

QQuickVector2DValueType::operator QVector2D ( ) const
inline

Definition at line 124 of file qquickvaluetypes_p.h.

◆ plus()

QVector2D QQuickVector2DValueType::plus ( const QVector2D vec) const

Definition at line 252 of file qquickvaluetypes.cpp.

◆ setX()

void QQuickVector2DValueType::setX ( qreal  x)

Definition at line 227 of file qquickvaluetypes.cpp.

◆ setY()

void QQuickVector2DValueType::setY ( qreal  y)

Definition at line 232 of file qquickvaluetypes.cpp.

◆ times() [1/2]

QVector2D QQuickVector2DValueType::times ( const QVector2D vec) const

Definition at line 242 of file qquickvaluetypes.cpp.

◆ times() [2/2]

QVector2D QQuickVector2DValueType::times ( qreal  scalar) const

Definition at line 247 of file qquickvaluetypes.cpp.

◆ toString()

QString QQuickVector2DValueType::toString ( ) const

Definition at line 212 of file qquickvaluetypes.cpp.

References QString::arg().

+ Here is the call graph for this function:

◆ toVector3d()

QVector3D QQuickVector2DValueType::toVector3d ( ) const

Definition at line 272 of file qquickvaluetypes.cpp.

◆ toVector4d()

QVector4D QQuickVector2DValueType::toVector4d ( ) const

Definition at line 277 of file qquickvaluetypes.cpp.

◆ x()

qreal QQuickVector2DValueType::x ( ) const

Definition at line 217 of file qquickvaluetypes.cpp.

◆ y()

qreal QQuickVector2DValueType::y ( ) const

Definition at line 222 of file qquickvaluetypes.cpp.

Property Documentation

◆ x

qreal QQuickVector2DValueType::x
readwrite

Definition at line 92 of file qquickvaluetypes_p.h.

◆ y

qreal QQuickVector2DValueType::y
readwrite

Definition at line 92 of file qquickvaluetypes_p.h.


The documentation for this class was generated from the following files: