96 static inline qreal abs(const QVector3D &vector) |
97 static inline qreal abs(const QVector3D &vector) |
97 { |
98 { |
98 return vector.length(); |
99 return vector.length(); |
99 } |
100 } |
100 |
101 |
|
102 template<typename T> |
|
103 unsigned int qHash(const std::unique_ptr<T>& pointer) |
|
104 { |
|
105 return qHash(pointer.get()); |
|
106 } |
|
107 |
101 qreal determinant(qreal a, qreal b, qreal c, qreal d); |
108 qreal determinant(qreal a, qreal b, qreal c, qreal d); |
102 qreal determinant(qreal a, qreal b, qreal c, qreal d, qreal e, qreal f, qreal g, qreal h, qreal i); |
109 qreal determinant(qreal a, qreal b, qreal c, qreal d, qreal e, qreal f, qreal g, qreal h, qreal i); |
103 qreal determinant(const QMatrix2x2& matrix); |
110 qreal determinant(const QMatrix2x2& matrix); |
104 qreal determinant(const QMatrix3x3& matrix); |
111 qreal determinant(const QMatrix3x3& matrix); |
105 qreal determinant(const QMatrix4x4& matrix); |
112 qreal determinant(const QMatrix4x4& matrix); |