17 static_assert(QT_VERSION >= QT_VERSION_CHECK(5, 5, 1),
18 "requires Qt >= 5.5.1, have " QT_VERSION_STR);
46 return QVector3D(*this).length();
56 return *
this * (1 - rat) + to * rat;
59 GUI::RealSpace::Vector3D::operator QVector3D()
const
61 return QVector3D(x, y, z);
69 return QVector3D::crossProduct(v1, v2);
74 return QVector3D::dotProduct(v1, v2);
128 : x(
Range(_1.x, _2.x))
129 , y(
Range(_1.y, _2.y))
130 , z(
Range(_1.z, _2.z))
Definitions in namespace GUI::RealSpace.
Vector3D operator*(const Vector3D &v, float f)
Vector3D cross(const Vector3D &v1, const Vector3D &v2)
Vector3D operator-(const Vector3D &v)
Vector3D operator+(const Vector3D &v)
float dot(const Vector3D &v1, const Vector3D &v2)
Vector3D normalized() const
Vector3D interpolateTo(const Vector3D &, float) const
VectorRange(Range, Range, Range)