#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_VECTOR3_H #define NUCLEX_SCENE_VECTOR3_H #include #include namespace Nuclex { namespace Scene { // ------------------------------------------------------------------------------------------- // /// Stores a 3D direction /// /// If multiple directions 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 Vector3 { /// Index of the 3D position type public: static const std::size_t Index = TIndex; /// Initializes a new 3D direction component public: Vector3() : X(0.0f), Y(0.0f), Z(0.0f) {} /// X offset of the direction public: float X; /// Y offset of the direction public: float Y; /// Z offset of the direction public: float Z; }; // ------------------------------------------------------------------------------------------- // }} // namespace Nuclex::Scene #endif // NUCLEX_SCENE_VECTOR3_H