Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 166 of file qquickvaluetypes.cpp.

◆ dotProduct()

qreal QQuickVector2DValueType::dotProduct ( const QVector2D & vec) const

Definition at line 200 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 255 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 245 of file qquickvaluetypes.cpp.

References epsilon, and qAbs().

+ Here is the call graph for this function:

◆ length()

qreal QQuickVector2DValueType::length ( ) const

Definition at line 230 of file qquickvaluetypes.cpp.

References QVector2D::length().

+ Here is the call graph for this function:

◆ minus()

QVector2D QQuickVector2DValueType::minus ( const QVector2D & vec) const

Definition at line 220 of file qquickvaluetypes.cpp.

◆ normalized()

QVector2D QQuickVector2DValueType::normalized ( ) const

Definition at line 225 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 215 of file qquickvaluetypes.cpp.

◆ setX()

void QQuickVector2DValueType::setX ( qreal x)

Definition at line 190 of file qquickvaluetypes.cpp.

◆ setY()

void QQuickVector2DValueType::setY ( qreal y)

Definition at line 195 of file qquickvaluetypes.cpp.

◆ times() [1/2]

QVector2D QQuickVector2DValueType::times ( const QVector2D & vec) const

Definition at line 205 of file qquickvaluetypes.cpp.

◆ times() [2/2]

QVector2D QQuickVector2DValueType::times ( qreal scalar) const

Definition at line 210 of file qquickvaluetypes.cpp.

◆ toString()

QString QQuickVector2DValueType::toString ( ) const

Definition at line 175 of file qquickvaluetypes.cpp.

References QString::arg().

+ Here is the call graph for this function:

◆ toVector3d()

QVector3D QQuickVector2DValueType::toVector3d ( ) const

Definition at line 235 of file qquickvaluetypes.cpp.

◆ toVector4d()

QVector4D QQuickVector2DValueType::toVector4d ( ) const

Definition at line 240 of file qquickvaluetypes.cpp.

◆ x()

qreal QQuickVector2DValueType::x ( ) const

Definition at line 180 of file qquickvaluetypes.cpp.

◆ y()

qreal QQuickVector2DValueType::y ( ) const

Definition at line 185 of file qquickvaluetypes.cpp.

Property Documentation

◆ x

qreal QQuickVector2DValueType::x
readwrite

Definition at line 93 of file qquickvaluetypes_p.h.

◆ y

qreal QQuickVector2DValueType::y
readwrite

Definition at line 94 of file qquickvaluetypes_p.h.


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