Blender V5.0
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/* types */
12
14typedef struct vec2s {
15 short x, y;
17
19typedef struct vec2f {
20 float x, y;
22
23typedef struct vec2i {
24 int x, y;
26
27/* not used at the moment */
28/*
29typedef struct vec2d {
30 double x, y;
31} vec2d;
32*/
33typedef struct vec3i {
34 int x, y, z;
36
37typedef struct vec3f {
38 float x, y, z;
40/*
41typedef struct vec3d {
42 double x, y, z;
43} vec3d;
44
45typedef struct vec4i {
46 int x, y, z, w;
47} vec4i;
48*/
49typedef struct vec4f {
50 float x, y, z, w;
52
58typedef struct mat4x4f {
59 float value[4][4];
61/*
62typedef struct vec4d {
63 double x, y, z, w;
64} vec4d;
65*/
66
68typedef 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
83
85typedef struct rctf {
86 float xmin, xmax;
87 float ymin, ymax;
89
91typedef struct DualQuat {
92 float quat[4];
93 float trans[4];
94
95 float scale[4][4];
BLI_INLINE bool operator!=(const ListBase &a, const ListBase &b)
bool operator==(const AssetWeakReference &a, const AssetWeakReference &b)
float scale_weight
float scale[4][4]
float quat[4]
float trans[4]
float value[4][4]
float xmax
float xmin
float ymax
float ymin
int ymin
int ymax
int xmin
int xmax
float x
float y
short y
short x
float x
float z
float y
float y
float x
float w
float z