//---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // //---------------------------------------------------------------------------- // Contact: [email protected] // [email protected] // http://www.antigrain.com //---------------------------------------------------------------------------- // Bessel function (besj) was adapted for use in AGG library by Andy Wilk // Contact: [email protected] //---------------------------------------------------------------------------- #ifndef AGG_MATH_INCLUDED #define AGG_MATH_INCLUDED #include "agg_basics.h" namespace pdfium { namespace agg { const float intersection_epsilon = …; AGG_INLINE float calc_point_location(float x1, float y1, float x2, float y2, float x, float y) { … } AGG_INLINE float calc_distance(float x1, float y1, float x2, float y2) { … } AGG_INLINE float calc_line_point_distance(float x1, float y1, float x2, float y2, float x, float y) { … } AGG_INLINE bool calc_intersection(float ax, float ay, float bx, float by, float cx, float cy, float dx, float dy, float* x, float* y) { … } } } // namespace pdfium #endif