Blender
V4.3
source
blender
makesdna
DNA_vec_types.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
/* types */
12
14
typedef
struct
vec2s
{
15
short
x
,
y
;
16
}
vec2s
;
17
19
typedef
struct
vec2f
{
20
float
x
,
y
;
21
}
vec2f
;
22
23
typedef
struct
vec2i
{
24
int
x
,
y
;
25
}
vec2i
;
26
27
/* not used at the moment */
28
/*
29
typedef struct vec2d {
30
double x, y;
31
} vec2d;
32
*/
33
typedef
struct
vec3i
{
34
int
x
,
y
,
z
;
35
}
vec3i
;
36
37
typedef
struct
vec3f
{
38
float
x
,
y
,
z
;
39
}
vec3f
;
40
/*
41
typedef struct vec3d {
42
double x, y, z;
43
} vec3d;
44
45
typedef struct vec4i {
46
int x, y, z, w;
47
} vec4i;
48
*/
49
typedef
struct
vec4f
{
50
float
x
,
y
,
z
,
w
;
51
}
vec4f
;
52
58
typedef
struct
mat4x4f
{
59
float
value[4][4];
60
}
mat4x4f
;
61
/*
62
typedef struct vec4d {
63
double x, y, z, w;
64
} vec4d;
65
*/
66
68
typedef
struct
rcti
{
69
int
xmin
,
xmax
;
70
int
ymin
,
ymax
;
71
72
#ifdef __cplusplus
73
inline
bool
operator==
(
const
rcti
&other)
const
74
{
75
return
xmin
== other.xmin &&
xmax
== other.xmax &&
ymin
== other.ymin &&
ymax
== other.ymax;
76
}
77
inline
bool
operator!=
(
const
rcti
&other)
const
78
{
79
return
!(*
this
== other);
80
}
81
#endif
82
}
rcti
;
83
85
typedef
struct
rctf
{
86
float
xmin
,
xmax
;
87
float
ymin
,
ymax
;
88
}
rctf
;
89
91
typedef
struct
DualQuat
{
92
float
quat
[4];
93
float
trans
[4];
94
95
float
scale[4][4];
96
float
scale_weight
;
97
}
DualQuat
;
rcti
struct rcti rcti
vec3f
struct vec3f vec3f
vec2s
struct vec2s vec2s
vec2f
struct vec2f vec2f
DualQuat
struct DualQuat DualQuat
vec4f
struct vec4f vec4f
mat4x4f
struct mat4x4f mat4x4f
rctf
struct rctf rctf
vec3i
struct vec3i vec3i
vec2i
struct vec2i vec2i
operator==
bool operator==(const AssetWeakReference &a, const AssetWeakReference &b)
Definition
asset_weak_reference.cc:76
operator!=
ccl_device_inline bool operator!=(const float2 a, const float2 b)
Definition
math_float2.h:112
DualQuat
Definition
DNA_vec_types.h:91
DualQuat::scale_weight
float scale_weight
Definition
DNA_vec_types.h:96
DualQuat::quat
float quat[4]
Definition
DNA_vec_types.h:92
DualQuat::trans
float trans[4]
Definition
DNA_vec_types.h:93
mat4x4f
Definition
DNA_vec_types.h:58
rctf
Definition
DNA_vec_types.h:85
rctf::xmax
float xmax
Definition
DNA_vec_types.h:86
rctf::xmin
float xmin
Definition
DNA_vec_types.h:86
rctf::ymax
float ymax
Definition
DNA_vec_types.h:87
rctf::ymin
float ymin
Definition
DNA_vec_types.h:87
rcti
Definition
DNA_vec_types.h:68
rcti::ymin
int ymin
Definition
DNA_vec_types.h:70
rcti::ymax
int ymax
Definition
DNA_vec_types.h:70
rcti::xmin
int xmin
Definition
DNA_vec_types.h:69
rcti::xmax
int xmax
Definition
DNA_vec_types.h:69
vec2f
Definition
DNA_vec_types.h:19
vec2f::x
float x
Definition
DNA_vec_types.h:20
vec2f::y
float y
Definition
DNA_vec_types.h:20
vec2i
Definition
DNA_vec_types.h:23
vec2i::y
int y
Definition
DNA_vec_types.h:24
vec2i::x
int x
Definition
DNA_vec_types.h:24
vec2s
Definition
DNA_vec_types.h:14
vec2s::y
short y
Definition
DNA_vec_types.h:15
vec2s::x
short x
Definition
DNA_vec_types.h:15
vec3f
Definition
DNA_vec_types.h:37
vec3f::x
float x
Definition
DNA_vec_types.h:38
vec3f::z
float z
Definition
DNA_vec_types.h:38
vec3f::y
float y
Definition
DNA_vec_types.h:38
vec3i
Definition
DNA_vec_types.h:33
vec3i::z
int z
Definition
DNA_vec_types.h:34
vec3i::y
int y
Definition
DNA_vec_types.h:34
vec3i::x
int x
Definition
DNA_vec_types.h:34
vec4f
Definition
DNA_vec_types.h:49
vec4f::y
float y
Definition
DNA_vec_types.h:50
vec4f::x
float x
Definition
DNA_vec_types.h:50
vec4f::w
float w
Definition
DNA_vec_types.h:50
vec4f::z
float z
Definition
DNA_vec_types.h:50
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0