Blender V5.3
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
11namespace blender {
12
13/* types */
14
16struct vec2s {
17 short x, y;
18};
19
21struct vec2f {
22 float x, y;
23};
24
25struct vec2i {
26 int x, y;
27};
28
29/* not used at the moment */
30/*
31struct vec2d {
32 double x, y;
33};
34*/
35struct vec3i {
36 int x, y, z;
37};
38
39struct vec3f {
40 float x, y, z;
41};
42/*
43struct vec3d {
44 double x, y, z;
45};
46
47struct vec4i {
48 int x, y, z, w;
49};
50*/
51struct vec4f {
52 float x, y, z, w;
53};
54
60struct mat4x4f {
61 float value[4][4];
62};
63/*
64struct vec4d {
65 double x, y, z, w;
66};
67*/
68
70struct 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
87struct rctf {
88 float xmin, xmax;
89 float ymin, ymax;
90};
91
93struct 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
bool operator==(const Error &left, const Error &right)
BMesh Iterators.
bool operator!=(const CPPType &a, const CPPType &b)
float scale[4][4]
float value[4][4]