mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-27 13:38:17 +02:00
clean ups - coding standard
This commit is contained in:
parent
4a17112478
commit
001c92416b
1 changed files with 36 additions and 37 deletions
|
@ -248,7 +248,6 @@ void KinectPlugin::init() {
|
||||||
auto preference = new CheckPreference(KINECT_PLUGIN, "Extra Debugging", debugGetter, debugSetter);
|
auto preference = new CheckPreference(KINECT_PLUGIN, "Extra Debugging", debugGetter, debugSetter);
|
||||||
preferences->addPreference(preference);
|
preferences->addPreference(preference);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KinectPlugin::isSupported() const {
|
bool KinectPlugin::isSupported() const {
|
||||||
|
@ -652,14 +651,14 @@ void KinectPlugin::InputDevice::clearState() {
|
||||||
|
|
||||||
glm::quat KinectPlugin::QMAL(glm::quat q)
|
glm::quat KinectPlugin::QMAL(glm::quat q)
|
||||||
{
|
{
|
||||||
if (glm::dot(_q_barL, q) < 0)
|
if (glm::dot(_q_barL, q) < 0) {
|
||||||
_q_barL = (1 - _deltaL)*_q_barL + -_deltaL*q;
|
_q_barL = (1 - _deltaL) * _q_barL + -_deltaL * q;
|
||||||
else
|
}
|
||||||
_q_barL = (1 - _deltaL)*_q_barL + _deltaL*q;
|
else {
|
||||||
|
_q_barL = (1 - _deltaL) * _q_barL + _deltaL * q;
|
||||||
|
}
|
||||||
|
|
||||||
_q_barL = glm::normalize(_q_barL);
|
_q_barL = glm::normalize(_q_barL);
|
||||||
|
|
||||||
|
|
||||||
if (_debug)
|
if (_debug)
|
||||||
{
|
{
|
||||||
qDebug() << __FUNCTION__ << "q = " << q.x << "," << q.y << "," << q.z << "," << q.w;
|
qDebug() << __FUNCTION__ << "q = " << q.x << "," << q.y << "," << q.z << "," << q.w;
|
||||||
|
@ -671,14 +670,14 @@ glm::quat KinectPlugin::QMAL(glm::quat q)
|
||||||
|
|
||||||
glm::quat KinectPlugin::QMAR(glm::quat q)
|
glm::quat KinectPlugin::QMAR(glm::quat q)
|
||||||
{
|
{
|
||||||
if (glm::dot(_q_barR, q) < 0)
|
if (glm::dot(_q_barR, q) < 0){
|
||||||
_q_barR = (1 - _deltaR)*_q_barR + -_deltaR*q;
|
_q_barR = (1 - _deltaR)*_q_barR + -_deltaR*q;
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
_q_barR = (1 - _deltaR)*_q_barR + _deltaR*q;
|
_q_barR = (1 - _deltaR)*_q_barR + _deltaR*q;
|
||||||
|
}
|
||||||
|
|
||||||
_q_barR = glm::normalize(_q_barR);
|
_q_barR = glm::normalize(_q_barR);
|
||||||
|
|
||||||
|
|
||||||
_q_barR = -_q_barR;
|
_q_barR = -_q_barR;
|
||||||
|
|
||||||
if (_debug)
|
if (_debug)
|
||||||
|
|
Loading…
Reference in a new issue