added new methods to Vec3 and Quat

This commit is contained in:
ZappoMan 2014-10-02 17:55:32 -07:00
parent d666f9ce98
commit aa634c8ff2
4 changed files with 10 additions and 0 deletions

View file

@ -84,3 +84,7 @@ void Quat::print(const QString& lable, const glm::quat& q) {
qDebug() << qPrintable(lable) << q.x << "," << q.y << "," << q.z << "," << q.w;
}
bool Quat::equal(const glm::vec3& q1, const glm::vec3& q2) {
return q1 == q2;
}

View file

@ -40,6 +40,7 @@ public slots:
glm::quat squad(const glm::quat& q1, const glm::quat& q2, const glm::quat& s1, const glm::quat& s2, float h);
float dot(const glm::quat& q1, const glm::quat& q2);
void print(const QString& lable, const glm::quat& q);
bool equal(const glm::vec3& q1, const glm::vec3& q2);
};
#endif // hifi_Quat_h

View file

@ -55,3 +55,7 @@ glm::vec3 Vec3::normalize(const glm::vec3& v) {
void Vec3::print(const QString& lable, const glm::vec3& v) {
qDebug() << qPrintable(lable) << v.x << "," << v.y << "," << v.z;
}
bool Vec3::equal(const glm::vec3& v1, const glm::vec3& v2) {
return v1 == v2;
}

View file

@ -36,6 +36,7 @@ public slots:
float distance(const glm::vec3& v1, const glm::vec3& v2);
glm::vec3 normalize(const glm::vec3& v);
void print(const QString& lable, const glm::vec3& v);
bool equal(const glm::vec3& v1, const glm::vec3& v2);
};