Blender
V5.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
8
9
#pragma once
10
11
namespace
blender
{
12
13
/* types */
14
16
struct
vec2s
{
17
short
x
,
y
;
18
};
19
21
struct
vec2f
{
22
float
x
,
y
;
23
};
24
25
struct
vec2i
{
26
int
x
,
y
;
27
};
28
29
/* not used at the moment */
30
/*
31
struct vec2d {
32
double x, y;
33
};
34
*/
35
struct
vec3i
{
36
int
x
,
y
,
z
;
37
};
38
39
struct
vec3f
{
40
float
x
,
y
,
z
;
41
};
42
/*
43
struct vec3d {
44
double x, y, z;
45
};
46
47
struct vec4i {
48
int x, y, z, w;
49
};
50
*/
51
struct
vec4f
{
52
float
x
,
y
,
z
,
w
;
53
};
54
60
struct
mat4x4f
{
61
float
value
[4][4];
62
};
63
/*
64
struct vec4d {
65
double x, y, z, w;
66
};
67
*/
68
70
struct
rcti
{
71
int
xmin
,
xmax
;
72
int
ymin
,
ymax
;
73
74
#ifdef __cplusplus
75
bool
operator==
(
const
rcti
&other)
const
76
{
77
return
xmin
== other.
xmin
&&
xmax
== other.
xmax
&&
ymin
== other.
ymin
&&
ymax
== other.
ymax
;
78
}
79
bool
operator!=
(
const
rcti
&other)
const
80
{
81
return
!(*
this
== other);
82
}
83
#endif
84
};
85
87
struct
rctf
{
88
float
xmin
,
xmax
;
89
float
ymin
,
ymax
;
90
};
91
93
struct
DualQuat
{
94
float
quat
[4] = {};
95
float
trans
[4] = {};
96
97
float
scale
[4][4] = {};
98
float
scale_weight
= 0;
99
};
100
101
}
// namespace blender
blender::bke::path_templates::operator==
bool operator==(const Error &left, const Error &right)
Definition
path_templates.cc:187
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::operator!=
bool operator!=(const CPPType &a, const CPPType &b)
Definition
BLI_cpp_type.hh:476
blender::DualQuat
Definition
DNA_vec_types.h:93
blender::DualQuat::trans
float trans[4]
Definition
DNA_vec_types.h:95
blender::DualQuat::quat
float quat[4]
Definition
DNA_vec_types.h:94
blender::DualQuat::scale
float scale[4][4]
Definition
DNA_vec_types.h:97
blender::DualQuat::scale_weight
float scale_weight
Definition
DNA_vec_types.h:98
blender::mat4x4f
Definition
DNA_vec_types.h:60
blender::mat4x4f::value
float value[4][4]
Definition
DNA_vec_types.h:61
blender::rctf
Definition
DNA_vec_types.h:87
blender::rctf::xmin
float xmin
Definition
DNA_vec_types.h:88
blender::rctf::xmax
float xmax
Definition
DNA_vec_types.h:88
blender::rctf::ymin
float ymin
Definition
DNA_vec_types.h:89
blender::rctf::ymax
float ymax
Definition
DNA_vec_types.h:89
blender::rcti
Definition
DNA_vec_types.h:70
blender::rcti::xmax
int xmax
Definition
DNA_vec_types.h:71
blender::rcti::xmin
int xmin
Definition
DNA_vec_types.h:71
blender::rcti::ymin
int ymin
Definition
DNA_vec_types.h:72
blender::rcti::ymax
int ymax
Definition
DNA_vec_types.h:72
blender::vec2f
Definition
DNA_vec_types.h:21
blender::vec2f::x
float x
Definition
DNA_vec_types.h:22
blender::vec2f::y
float y
Definition
DNA_vec_types.h:22
blender::vec2i
Definition
DNA_vec_types.h:25
blender::vec2i::y
int y
Definition
DNA_vec_types.h:26
blender::vec2i::x
int x
Definition
DNA_vec_types.h:26
blender::vec2s
Definition
DNA_vec_types.h:16
blender::vec2s::x
short x
Definition
DNA_vec_types.h:17
blender::vec2s::y
short y
Definition
DNA_vec_types.h:17
blender::vec3f
Definition
DNA_vec_types.h:39
blender::vec3f::x
float x
Definition
DNA_vec_types.h:40
blender::vec3f::z
float z
Definition
DNA_vec_types.h:40
blender::vec3f::y
float y
Definition
DNA_vec_types.h:40
blender::vec3i
Definition
DNA_vec_types.h:35
blender::vec3i::x
int x
Definition
DNA_vec_types.h:36
blender::vec3i::z
int z
Definition
DNA_vec_types.h:36
blender::vec3i::y
int y
Definition
DNA_vec_types.h:36
blender::vec4f
Definition
DNA_vec_types.h:51
blender::vec4f::x
float x
Definition
DNA_vec_types.h:52
blender::vec4f::z
float z
Definition
DNA_vec_types.h:52
blender::vec4f::w
float w
Definition
DNA_vec_types.h:52
blender::vec4f::y
float y
Definition
DNA_vec_types.h:52
Generated on
for Blender by
doxygen
1.18.0