17 static_assert(QT_VERSION >= QT_VERSION_CHECK(5, 5, 1),
18 "requires Qt >= 5.5.1, have " QT_VERSION_STR);
33 return QVector3D(*this).length();
43 return *
this * (1 - rat) + to * rat;
46 RealSpace::Vector3D::operator QVector3D()
const
48 return QVector3D(x, y, z);
56 return QVector3D::crossProduct(v1, v2);
61 return QVector3D::dotProduct(v1, v2);
91 Range::Range(
float r1,
float r2) : min(qMin(r1, r2)), max(qMax(r1, r2)) {}
float dot(const Vector3D &v1, const Vector3D &v2)
Vector3D cross(const Vector3D &v1, const Vector3D &v2)
Vector3D operator-(const Vector3D &v)
Vector3D operator+(const Vector3D &v)
Vector3D operator*(const Vector3D &v, float f)
Vector3D interpolateTo(const Vector3D &, float) const
Vector3D normalized() const
VectorRange(Range, Range, Range)