diff options
author | Hans Goudey <h.goudey@me.com> | 2021-04-25 23:10:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-04-25 23:10:17 +0300 |
commit | 39f21c24751f3a8fe147f8d63f7a04d7f6b36a35 (patch) | |
tree | 865241d5a7315d4a97d98dd151c52ea5264f9f8f /source/blender/blenlib | |
parent | 87036f5eeb218218f11cff9bfb57905579cd62b7 (diff) |
Splines: Cleanup, remove more unecessary changes
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_quaternion.hh | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/source/blender/blenlib/BLI_quaternion.hh b/source/blender/blenlib/BLI_quaternion.hh deleted file mode 100644 index 85b738b4d23..00000000000 --- a/source/blender/blenlib/BLI_quaternion.hh +++ /dev/null @@ -1,62 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#pragma once - -#include <iostream> - -#include "BLI_float3.hh" -#include "BLI_math_rotation.h" - -namespace blender { - -struct Quaternion { - float values[4]; - - Quaternion() = default; - - static Quaternion unit() - { - Quaternion unit; - unit_qt(unit); - return unit; - } - - bool is_zero() - { - return values[0] == 0.0f && values[1] == 0.0f && values[2] == 0.0f && values[3] == 0.0f; - } - - Quaternion(const float *ptr) : values[0]{ptr[0]}, y{ptr[1]}, z{ptr[2]} - { - } - - Quaternion(const float (*ptr)[4]) : Quaternion(static_cast<const float *>(ptr[0])) - { - } - - operator const float *() const - { - return values; - } - - operator float *() - { - return values; - } -}; - -} // namespace blender |