#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_POSITION4_H #define NUCLEX_SCENE_POSITION4_H #include #include namespace Nuclex { namespace Scene { // ------------------------------------------------------------------------------------------- // /// Stores a 4D position /// /// If multiple positions exist (for example, a mesh might have multiple sets /// of positions as morph targets), the template argument allows the application /// to distinguish between these /// template class Position4 { /// Index of the 4D position type public: static const std::size_t Index = TIndex; /// Initializes a new 4D position component public: Position4() : 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_POSITION4_H