clean ups - coding standard

This commit is contained in:
Al Bernstein 2017-04-06 11:23:33 -07:00
parent 4a17112478
commit 001c92416b

View file

@ -248,7 +248,6 @@ void KinectPlugin::init() {
auto preference = new CheckPreference(KINECT_PLUGIN, "Extra Debugging", debugGetter, debugSetter);
preferences->addPreference(preference);
}
}
bool KinectPlugin::isSupported() const {
@ -652,14 +651,14 @@ void KinectPlugin::InputDevice::clearState() {
glm::quat KinectPlugin::QMAL(glm::quat q)
{
if (glm::dot(_q_barL, q) < 0)
_q_barL = (1 - _deltaL)*_q_barL + -_deltaL*q;
else
_q_barL = (1 - _deltaL)*_q_barL + _deltaL*q;
if (glm::dot(_q_barL, q) < 0) {
_q_barL = (1 - _deltaL) * _q_barL + -_deltaL * q;
}
else {
_q_barL = (1 - _deltaL) * _q_barL + _deltaL * q;
}
_q_barL = glm::normalize(_q_barL);
if (_debug)
{
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)
{
if (glm::dot(_q_barR, q) < 0)
if (glm::dot(_q_barR, q) < 0){
_q_barR = (1 - _deltaR)*_q_barR + -_deltaR*q;
else
}
else {
_q_barR = (1 - _deltaR)*_q_barR + _deltaR*q;
}
_q_barR = glm::normalize(_q_barR);
_q_barR = -_q_barR;
if (_debug)