Add various vector functions
- map()
- Bool vectors
- any(), all(), comparison functions
Example:
all(lessThan(abs(v1 - v0), epsilon))
Bug: 32984164
Test: vec_test
Change-Id: I7d030387f5a280a499ea480015b69138cef38459
diff --git a/include/ui/vec3.h b/include/ui/vec3.h
index f76b2ec..e3a6d14 100644
--- a/include/ui/vec3.h
+++ b/include/ui/vec3.h
@@ -124,6 +124,7 @@
typedef details::TVec3<uint16_t> ushort3;
typedef details::TVec3<int8_t> byte3;
typedef details::TVec3<uint8_t> ubyte3;
+typedef details::TVec3<bool> bool3;
// ----------------------------------------------------------------------------------------
} // namespace android