Blender  V2.93
DNA_vec_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* types */
31 
33 typedef struct vec2s {
34  short x, y;
36 
38 typedef struct vec2f {
39  float x, y;
41 
42 /* not used at the moment */
43 /*
44 typedef struct vec2i {
45  int x, y;
46 } vec2i;
47 
48 typedef struct vec2d {
49  double x, y;
50 } vec2d;
51 
52 typedef struct vec3i {
53  int x, y, z;
54 } vec3i;
55 */
56 typedef struct vec3f {
57  float x, y, z;
59 /*
60 typedef struct vec3d {
61  double x, y, z;
62 } vec3d;
63 
64 typedef struct vec4i {
65  int x, y, z, w;
66 } vec4i;
67 
68 typedef struct vec4f {
69  float x, y, z, w;
70 } vec4f;
71 
72 typedef struct vec4d {
73  double x, y, z, w;
74 } vec4d;
75 */
76 
78 typedef struct rcti {
79  int xmin, xmax;
80  int ymin, ymax;
81 } rcti;
82 
84 typedef struct rctf {
85  float xmin, xmax;
86  float ymin, ymax;
87 } rctf;
88 
90 typedef struct DualQuat {
91  float quat[4];
92  float trans[4];
93 
94  float scale[4][4];
95  float scale_weight;
97 
98 #ifdef __cplusplus
99 }
100 #endif
struct rcti rcti
struct vec3f vec3f
struct vec2s vec2s
struct vec2f vec2f
struct DualQuat DualQuat
struct rctf rctf
float scale_weight
Definition: DNA_vec_types.h:95
float scale[4][4]
Definition: DNA_vec_types.h:94
float quat[4]
Definition: DNA_vec_types.h:91
float trans[4]
Definition: DNA_vec_types.h:92
float xmax
Definition: DNA_vec_types.h:85
float xmin
Definition: DNA_vec_types.h:85
float ymax
Definition: DNA_vec_types.h:86
float ymin
Definition: DNA_vec_types.h:86
int ymin
Definition: DNA_vec_types.h:80
int ymax
Definition: DNA_vec_types.h:80
int xmin
Definition: DNA_vec_types.h:79
int xmax
Definition: DNA_vec_types.h:79
float x
Definition: DNA_vec_types.h:39
float y
Definition: DNA_vec_types.h:39
short y
Definition: DNA_vec_types.h:34
short x
Definition: DNA_vec_types.h:34
float x
Definition: DNA_vec_types.h:57
float z
Definition: DNA_vec_types.h:57
float y
Definition: DNA_vec_types.h:57