mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
added new methods to Vec3 and Quat
This commit is contained in:
parent
d666f9ce98
commit
aa634c8ff2
4 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue