Commit 5e8debf9 authored by Albert Astals Cid's avatar Albert Astals Cid

xpdf303: Add splashCheckDet helper

parent 4cef5a52
......@@ -114,4 +114,14 @@ static inline SplashCoord splashDist(SplashCoord x0, SplashCoord y0,
static inline GBool splashCheckDet(SplashCoord m11, SplashCoord m12,
SplashCoord m21, SplashCoord m22,
SplashCoord epsilon) {
return FixedPoint::checkDet(m11, m12, m21, m22, epsilon);
return fabs(m11 * m22 - m12 * m21) >= epsilon;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment