#pragma region CPL License /* Nuclex Native Framework Copyright (C) 2002-2013 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library 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 IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #pragma endregion // CPL License #ifndef NUCLEX_SCENE_QUATERNION_H #define NUCLEX_SCENE_QUATERNION_H #include #include namespace Nuclex { namespace Scene { // ------------------------------------------------------------------------------------------- // /// Stores an orientation /// /// If multiple orientations exist (for example, a bone might have store multiple rest /// orientations), the template argument allows the application to distinguish /// between these. /// template class Quaternion { /// Index of the quaternion type public: static const std::size_t Index = TIndex; /// Initializes a new quaternion component public: Quaternion() : X(0.0f), Y(0.0f), Z(0.0f), W(0.0f) {} /// X coordinate the entity is located at public: float X; /// Y coordinate the entity is located at public: float Y; /// Z coordinate the entity is located at public: float Z; /// W coordinate the entity is located at public: float W; }; // ------------------------------------------------------------------------------------------- // }} // namespace Nuclex::Scene #endif // NUCLEX_SCENE_QUATERNION_H