|
Horizon
|
Calculate the cost of a given line, taking corner angles and total length into account. More...
#include <pns_optimizer.h>
Public Member Functions | |
| COST_ESTIMATOR (const COST_ESTIMATOR &aB) | |
| void | Add (const LINE &aLine) |
| void | Remove (const LINE &aLine) |
| void | Replace (const LINE &aOldLine, const LINE &aNewLine) |
| bool | IsBetter (const COST_ESTIMATOR &aOther, double aLengthTolerance, double aCornerTollerace) const |
| double | GetLengthCost () const |
| double | GetCornerCost () const |
Static Public Member Functions | |
| static int | CornerCost (const SEG &aA, const SEG &aB) |
| static int | CornerCost (const SHAPE_LINE_CHAIN &aLine) |
| static int | CornerCost (const LINE &aLine) |
Calculate the cost of a given line, taking corner angles and total length into account.