Sign in
skia
/
external
/
github.com
/
rive-app
/
rive-cpp
/
a8b7f00bed64849f52c402d91c7bbbbe3538558a
/
.
/
test
/
rive_testing.cpp
blob: aa7691e1c9a9f04dd19a8d1ef2ec8cda0dfdfe18 [
file
] [
log
] [
blame
]
#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
;
}