Blender  V3.3
DNA_vec_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /* types */
15 
17 typedef struct vec2s {
18  short x, y;
20 
22 typedef struct vec2f {
23  float x, y;
25 
26 /* not used at the moment */
27 /*
28 typedef struct vec2i {
29  int x, y;
30 } vec2i;
31 
32 typedef struct vec2d {
33  double x, y;
34 } vec2d;
35 
36 typedef struct vec3i {
37  int x, y, z;
38 } vec3i;
39 */
40 typedef struct vec3f {
41  float x, y, z;
43 /*
44 typedef struct vec3d {
45  double x, y, z;
46 } vec3d;
47 
48 typedef struct vec4i {
49  int x, y, z, w;
50 } vec4i;
51 
52 typedef struct vec4f {
53  float x, y, z, w;
54 } vec4f;
55 
56 typedef struct vec4d {
57  double x, y, z, w;
58 } vec4d;
59 */
60 
62 typedef struct rcti {
63  int xmin, xmax;
64  int ymin, ymax;
65 } rcti;
66 
68 typedef struct rctf {
69  float xmin, xmax;
70  float ymin, ymax;
71 } rctf;
72 
74 typedef struct DualQuat {
75  float quat[4];
76  float trans[4];
77 
78  float scale[4][4];
79  float scale_weight;
81 
82 #ifdef __cplusplus
83 }
84 #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:79
float scale[4][4]
Definition: DNA_vec_types.h:78
float quat[4]
Definition: DNA_vec_types.h:75
float trans[4]
Definition: DNA_vec_types.h:76
float xmax
Definition: DNA_vec_types.h:69
float xmin
Definition: DNA_vec_types.h:69
float ymax
Definition: DNA_vec_types.h:70
float ymin
Definition: DNA_vec_types.h:70
int ymin
Definition: DNA_vec_types.h:64
int ymax
Definition: DNA_vec_types.h:64
int xmin
Definition: DNA_vec_types.h:63
int xmax
Definition: DNA_vec_types.h:63
float x
Definition: DNA_vec_types.h:23
float y
Definition: DNA_vec_types.h:23
short y
Definition: DNA_vec_types.h:18
short x
Definition: DNA_vec_types.h:18
float x
Definition: DNA_vec_types.h:41
float z
Definition: DNA_vec_types.h:41
float y
Definition: DNA_vec_types.h:41