mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 19:07:23 +02:00
20 lines
380 B
C++
20 lines
380 B
C++
//
|
|
// Quat.cpp
|
|
// hifi
|
|
//
|
|
// Created by Brad Hefta-Gaub on 1/29/14
|
|
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
// Scriptable Quaternion class library.
|
|
//
|
|
//
|
|
|
|
#include "Quat.h"
|
|
|
|
glm::quat Quat::multiply(const glm::quat& q1, const glm::quat& q2) {
|
|
return q1 * q2;
|
|
}
|
|
|
|
glm::quat Quat::fromVec3(const glm::vec3& vec3) {
|
|
return glm::quat(vec3);
|
|
}
|