LibreOffice Module basegfx (master) 1
|
#include <b2dbeziertools.hxx>
Public Member Functions | |
B2DCubicBezierHelper (const B2DCubicBezier &rBase, sal_uInt32 nDivisions=9) | |
double | getLength () const |
double | distanceToRelative (double fDistance) const |
Private Attributes | |
::std::vector< double > | maLengthArray |
sal_uInt32 | mnEdgeCount |
Definition at line 37 of file b2dbeziertools.hxx.
|
explicit |
Definition at line 26 of file b2dbeziertools.cxx.
References a, basegfx::B2DCubicBezier::getEdgeLength(), basegfx::B2DCubicBezier::getEndPoint(), basegfx::B2DVector::getLength(), basegfx::B2DCubicBezier::getStartPoint(), basegfx::B2DCubicBezier::interpolatePoint(), basegfx::B2DCubicBezier::isBezier(), maLengthArray, and mnEdgeCount.
double basegfx::B2DCubicBezierHelper::distanceToRelative | ( | double | fDistance | ) | const |
Definition at line 83 of file b2dbeziertools.cxx.
References getLength(), maLengthArray, mnEdgeCount, basegfx::fTools::moreOrEqual(), and nIndex.
Referenced by basegfx::utils::applyLineDashing(), basegfx::utils::getPositionAbsolute(), and basegfx::utils::getSnippetAbsolute().
|
inline |
Definition at line 46 of file b2dbeziertools.hxx.
Referenced by basegfx::utils::applyLineDashing(), and distanceToRelative().
|
private |
Definition at line 40 of file b2dbeziertools.hxx.
Referenced by B2DCubicBezierHelper(), and distanceToRelative().
|
private |
Definition at line 41 of file b2dbeziertools.hxx.
Referenced by B2DCubicBezierHelper(), and distanceToRelative().