Horizon
Loading...
Searching...
No Matches
PNS::COST_ESTIMATOR Class Reference

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)

Detailed Description

Calculate the cost of a given line, taking corner angles and total length into account.


The documentation for this class was generated from the following files: