Blender  V2.59
DNA_vec_types.h
Go to the documentation of this file.
00001 /*
00002  * $Id: DNA_vec_types.h 34941 2011-02-17 20:48:12Z jesterking $ 
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00021  * All rights reserved.
00022  *
00023  * The Original Code is: all of this file.
00024  *
00025  * Contributor(s): none yet.
00026  *
00027  * ***** END GPL LICENSE BLOCK *****
00028  * 
00029  */
00030 
00031 #ifndef DNA_VEC_TYPES_H
00032 #define DNA_VEC_TYPES_H
00033 
00039 /* types */
00040 
00042 typedef struct vec2s {
00043         short x, y;
00044 } vec2s;
00045 
00047 typedef struct vec2f {
00048         float x, y;
00049 } vec2f;
00050 
00051 /* not used at the moment */
00052 /*
00053 typedef struct vec2i {
00054         int x, y;
00055 } vec2i;
00056 
00057 typedef struct vec2d {
00058         double x, y;
00059 } vec2d;
00060 
00061 typedef struct vec3i {
00062         int x, y, z;
00063 } vec3i;
00064 
00065 typedef struct vec3f {
00066         float x, y, z;
00067 } vec3f;
00068 
00069 typedef struct vec3d {
00070         double x, y, z;
00071 } vec3d;
00072 
00073 typedef struct vec4i {
00074         int x, y, z, w;
00075 } vec4i;
00076 
00077 typedef struct vec4f {
00078         float x, y, z, w;
00079 } vec4f;
00080 
00081 typedef struct vec4d {
00082         double x, y, z, w;
00083 } vec4d;
00084 */
00085 
00087 typedef struct rcti {
00088         int xmin, xmax;
00089         int ymin, ymax;
00090 } rcti;
00091 
00093 typedef struct rctf {
00094         float xmin, xmax;
00095         float ymin, ymax;
00096 } rctf;
00097 
00098 #endif
00099