From 60ea7456137a019c2ddad75f14b3b6a0892f7b56 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 9 Nov 2009 22:42:41 +0000 Subject: Math Lib Reorganization * New header and source files. * Still need a few tweaks before switching code to use them. --- source/blender/blenlib/BLI_math.h | 64 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 source/blender/blenlib/BLI_math.h (limited to 'source/blender/blenlib/BLI_math.h') diff --git a/source/blender/blenlib/BLI_math.h b/source/blender/blenlib/BLI_math.h new file mode 100644 index 00000000000..b1917bc27b7 --- /dev/null +++ b/source/blender/blenlib/BLI_math.h @@ -0,0 +1,64 @@ +/** + * $Id$ + * + * ***** 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. + * All rights reserved. + * + * The Original Code is: some of this file. + * + * ***** END GPL LICENSE BLOCK ***** + * */ + +#ifndef BLI_MATH +#define BLI_MATH + +/* Abbreviations: + * + * fl = float + * db = double + * v2 = vec2 = vector 2 + * v3 = vec3 = vector 3 + * v4 = vec4 = vector 4 + * qt = quat = quaternion + * dq = dquat = dual quaternion + * m2 = mat2 = matrix 2x2 + * m3 = mat3 = matrix 3x3 + * m4 = mat4 = matrix 4x4 + * eul = euler rotation + * eulO = euler with order + * + * Variable Names: + * + * f = single value + * a, b, c = vectors + * r = result vector + * A, B, C = matrices + * R = result matrix + * + */ + +#include "BLI_math_base.h" +#include "BLI_math_color.h" +#include "BLI_math_geom.h" +#include "BLI_math_matrix.h" +#include "BLI_math_rotation.h" +#include "BLI_math_vector.h" + +#endif /* BLI_MATH */ + -- cgit v1.2.3