Sign in
skia
/
external
/
github.com
/
rive-app
/
rive-cpp
/
b1dc7eb2b5f5de7abc3d7f3b413e5d9a5c74d62f
/
.
/
test
/
rive_testing.cpp
blob: aa7691e1c9a9f04dd19a8d1ef2ec8cda0dfdfe18 [
file
]
#include
"rive_testing.hpp"
bool
aboutEqual
(
const
rive
::
Mat2D
&
a
,
const
rive
::
Mat2D
&
b
)
{
const
float
epsilon
=
0.0001f
;
for
(
int
i
=
0
;
i
<
6
;
i
++)
{
if
(
std
::
fabs
(
a
[
i
]
-
b
[
i
])
>
epsilon
)
{
return
false
;
}
}
return
true
;
}