diff options
Diffstat (limited to 'source/blender/freestyle/intern/geometry/Geom.h')
-rw-r--r-- | source/blender/freestyle/intern/geometry/Geom.h | 132 |
1 files changed, 69 insertions, 63 deletions
diff --git a/source/blender/freestyle/intern/geometry/Geom.h b/source/blender/freestyle/intern/geometry/Geom.h index ac94213fe98..f241346ec85 100644 --- a/source/blender/freestyle/intern/geometry/Geom.h +++ b/source/blender/freestyle/intern/geometry/Geom.h @@ -1,78 +1,84 @@ -// -// Filename : Geom.h -// Author(s) : Sylvain Paris -// Emmanuel Turquin -// Stephane Grabli -// Purpose : Vectors and Matrices (useful type definitions) -// Date of creation : 20/05/2003 -// -/////////////////////////////////////////////////////////////////////////////// +/* + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * 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. + * + * The Original Code is Copyright (C) 2010 Blender Foundation. + * All rights reserved. + * + * The Original Code is: all of this file. + * + * Contributor(s): none yet. + * + * ***** END GPL LICENSE BLOCK ***** + */ +#ifndef __GEOM_H__ +#define __GEOM_H__ -// -// Copyright (C) : Please refer to the COPYRIGHT file distributed -// with this source distribution. -// -// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// -/////////////////////////////////////////////////////////////////////////////// +/** \file blender/freestyle/intern/geometry/Geom.h + * \ingroup freestyle + * \brief Vectors and Matrices (useful type definitions) + * \author Sylvain Paris + * \author Emmanuel Turquin + * \author Stephane Grabli + * \date 20/05/2003 + */ -#ifndef GEOM_H -# define GEOM_H +#include "VecMat.h" -# include "VecMat.h" -# include "../system/Precision.h" +#include "../system/Precision.h" namespace Geometry { - typedef VecMat::Vec2<unsigned> Vec2u; - typedef VecMat::Vec2<int> Vec2i; - typedef VecMat::Vec2<float> Vec2f; - typedef VecMat::Vec2<double> Vec2d; - typedef VecMat::Vec2<real> Vec2r; +typedef VecMat::Vec2<unsigned> Vec2u; +typedef VecMat::Vec2<int> Vec2i; +typedef VecMat::Vec2<float> Vec2f; +typedef VecMat::Vec2<double> Vec2d; +typedef VecMat::Vec2<real> Vec2r; - typedef VecMat::Vec3<unsigned> Vec3u; - typedef VecMat::Vec3<int> Vec3i; - typedef VecMat::Vec3<float> Vec3f; - typedef VecMat::Vec3<double> Vec3d; - typedef VecMat::Vec3<real> Vec3r; +typedef VecMat::Vec3<unsigned> Vec3u; +typedef VecMat::Vec3<int> Vec3i; +typedef VecMat::Vec3<float> Vec3f; +typedef VecMat::Vec3<double> Vec3d; +typedef VecMat::Vec3<real> Vec3r; - typedef VecMat::HVec3<unsigned> HVec3u; - typedef VecMat::HVec3<int> HVec3i; - typedef VecMat::HVec3<float> HVec3f; - typedef VecMat::HVec3<double> HVec3d; - typedef VecMat::HVec3<real> HVec3r; +typedef VecMat::HVec3<unsigned> HVec3u; +typedef VecMat::HVec3<int> HVec3i; +typedef VecMat::HVec3<float> HVec3f; +typedef VecMat::HVec3<double> HVec3d; +typedef VecMat::HVec3<real> HVec3r; - typedef VecMat::SquareMatrix<unsigned, 2> Matrix22u; - typedef VecMat::SquareMatrix<int, 2> Matrix22i; - typedef VecMat::SquareMatrix<float, 2> Matrix22f; - typedef VecMat::SquareMatrix<double, 2> Matrix22d; - typedef VecMat::SquareMatrix<real, 2> Matrix22r; +typedef VecMat::SquareMatrix<unsigned, 2> Matrix22u; +typedef VecMat::SquareMatrix<int, 2> Matrix22i; +typedef VecMat::SquareMatrix<float, 2> Matrix22f; +typedef VecMat::SquareMatrix<double, 2> Matrix22d; +typedef VecMat::SquareMatrix<real, 2> Matrix22r; - typedef VecMat::SquareMatrix<unsigned, 3> Matrix33u; - typedef VecMat::SquareMatrix<int, 3> Matrix33i; - typedef VecMat::SquareMatrix<float, 3> Matrix33f; - typedef VecMat::SquareMatrix<double, 3> Matrix33d; - typedef VecMat::SquareMatrix<real, 3> Matrix33r; +typedef VecMat::SquareMatrix<unsigned, 3> Matrix33u; +typedef VecMat::SquareMatrix<int, 3> Matrix33i; +typedef VecMat::SquareMatrix<float, 3> Matrix33f; +typedef VecMat::SquareMatrix<double, 3> Matrix33d; +typedef VecMat::SquareMatrix<real, 3> Matrix33r; - typedef VecMat::SquareMatrix<unsigned, 4> Matrix44u; - typedef VecMat::SquareMatrix<int, 4> Matrix44i; - typedef VecMat::SquareMatrix<float, 4> Matrix44f; - typedef VecMat::SquareMatrix<double, 4> Matrix44d; - typedef VecMat::SquareMatrix<real, 4> Matrix44r; +typedef VecMat::SquareMatrix<unsigned, 4> Matrix44u; +typedef VecMat::SquareMatrix<int, 4> Matrix44i; +typedef VecMat::SquareMatrix<float, 4> Matrix44f; +typedef VecMat::SquareMatrix<double, 4> Matrix44d; +typedef VecMat::SquareMatrix<real, 4> Matrix44r; } // end of namespace Geometry -#endif // GEOM_H +#endif // __GEOM_H__ |