LibreOffice Module basegfx (master) 1
Classes | Typedefs | Functions | Variables
bezierclip.hxx File Reference
#include <vector>
Include dependency graph for bezierclip.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Point2D
 
struct  Bezier
 
struct  FatLine
 

Typedefs

typedef std::vector< Point2DPolygon2D
 

Functions

template<typename DataType >
DataType calcLineDistance (const DataType &a, const DataType &b, const DataType &c, const DataType &x, const DataType &y)
 
template<typename NumType >
NumType absval (NumType x)
 
Polygon2D convexHull (const Polygon2D &rPoly)
 
template<typename NumType >
bool tolZero (NumType n)
 
template<typename NumType >
bool tolEqual (NumType n1, NumType n2)
 
template<typename NumType >
bool tolLessEqual (NumType n1, NumType n2)
 
template<typename NumType >
bool tolGreaterEqual (NumType n1, NumType n2)
 

Variables

constexpr auto DBL_EPSILON = 1.0e-100
 

Typedef Documentation

◆ Polygon2D

typedef std::vector< Point2D > Polygon2D

Definition at line 65 of file bezierclip.hxx.

Function Documentation

◆ absval()

template<typename NumType >
NumType absval ( NumType  x)

Definition at line 68 of file bezierclip.hxx.

References x.

Referenced by theta().

◆ calcLineDistance()

template<typename DataType >
DataType calcLineDistance ( const DataType a,
const DataType b,
const DataType c,
const DataType x,
const DataType y 
)

Definition at line 56 of file bezierclip.hxx.

References a, x, and y.

Referenced by Impl_calcClipRange(), and Impl_calcFatLine().

◆ convexHull()

Polygon2D convexHull ( const Polygon2D rPoly)

Definition at line 150 of file convexhull.cxx.

References ccw(), i, M, min(), N, result, x, and y.

Referenced by Impl_calcSafeParams(), Impl_calcSafeParams_clip(), Impl_calcSafeParams_focus(), and main().

◆ tolEqual()

template<typename NumType >
bool tolEqual ( NumType  n1,
NumType  n2 
)

Definition at line 80 of file bezierclip.hxx.

References n1, n2, and tolZero().

Referenced by Impl_calcSafeParams(), Impl_deCasteljauAt(), tolGreaterEqual(), and tolLessEqual().

◆ tolGreaterEqual()

template<typename NumType >
bool tolGreaterEqual ( NumType  n1,
NumType  n2 
)

Definition at line 82 of file bezierclip.hxx.

References n1, n2, and tolEqual().

Referenced by Impl_applySafeRanges_rec(), and Impl_calcSafeParams().

◆ tolLessEqual()

template<typename NumType >
bool tolLessEqual ( NumType  n1,
NumType  n2 
)

Definition at line 81 of file bezierclip.hxx.

References n1, n2, and tolEqual().

Referenced by Impl_applySafeRanges_rec(), and Impl_calcSafeParams().

◆ tolZero()

template<typename NumType >
bool tolZero ( NumType  n)

Definition at line 79 of file bezierclip.hxx.

References DBL_EPSILON, and n.

Referenced by Impl_calcFatLine(), Impl_calcSafeParams(), Impl_deCasteljauAt(), and tolEqual().

Variable Documentation

◆ DBL_EPSILON

constexpr auto DBL_EPSILON = 1.0e-100
constexpr

Definition at line 76 of file bezierclip.hxx.

Referenced by tolZero().