Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-04 22:07:26 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-05 18:49:14 +0300
commit78dcd92edbcc28dc2f03fbc3beee7b6ad667c5cc (patch)
tree98b66af018bcfece308639c9a515860f928d67e6 /source/blender/blenlib/intern/math_vector_inline.c
parent895ec052128dba7b319e07af40fb91fdd50aff19 (diff)
BLI: Math: Add equals_v3v3_int
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r--source/blender/blenlib/intern/math_vector_inline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c
index 4af7e79c542..f6841ef52b0 100644
--- a/source/blender/blenlib/intern/math_vector_inline.c
+++ b/source/blender/blenlib/intern/math_vector_inline.c
@@ -1313,6 +1313,11 @@ MINLINE bool equals_v2v2_int(const int v1[2], const int v2[2])
return ((v1[0] == v2[0]) && (v1[1] == v2[1]));
}
+MINLINE bool equals_v3v3_int(const int v1[3], const int v2[3])
+{
+ return ((v1[0] == v2[0]) && (v1[1] == v2[1]) && (v1[2] == v2[2]));
+}
+
MINLINE bool equals_v4v4_int(const int v1[4], const int v2[4])
{
return ((v1[0] == v2[0]) && (v1[1] == v2[1]) && (v1[2] == v2[2]) && (v1[3] == v2[3]));