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/vec4.h b/include/ui/vec4.h
index e13ad96..9346fb3 100644
--- a/include/ui/vec4.h
+++ b/include/ui/vec4.h
@@ -121,6 +121,7 @@
typedef details::TVec4<uint16_t> ushort4;
typedef details::TVec4<int8_t> byte4;
typedef details::TVec4<uint8_t> ubyte4;
+typedef details::TVec4<bool> bool4;
// ----------------------------------------------------------------------------------------
} // namespace android