Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::ConnectionCost Struct Reference

Public Member Functions

 ConnectionCost (double cost, double cost_flipped)
 
 ConnectionCost ()
 
void flip ()
 

Public Attributes

double cost = 0
 
double cost_flipped = 0
 

Detailed Description

Constructor & Destructor Documentation

◆ ConnectionCost() [1/2]

Slic3r::ConnectionCost::ConnectionCost ( double  cost,
double  cost_flipped 
)
inline
double cost_flipped
Definition ShortestPath.cpp:1289
double cost
Definition ShortestPath.cpp:1288

◆ ConnectionCost() [2/2]

Slic3r::ConnectionCost::ConnectionCost ( )
inline
1286: cost(0.), cost_flipped(0.) {}

Member Function Documentation

◆ flip()

void Slic3r::ConnectionCost::flip ( )
inline
1287{ std::swap(this->cost, this->cost_flipped); }

Member Data Documentation

◆ cost

double Slic3r::ConnectionCost::cost = 0

◆ cost_flipped

double Slic3r::ConnectionCost::cost_flipped = 0

The documentation for this struct was generated from the following file: