OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Gds2Path.cpp File Reference

Functions

std::pair< int, int > offsetPoint (const std::pair< int, int > &p, const std::pair< int, int > &direction, double offset)
 
std::pair< int, int > normalize (const std::pair< int, int > &p)
 
std::vector< std::pair< int, int > > toPolygon (const std::vector< std::pair< int, int > > &path, double width)
 

Function Documentation

◆ normalize()

std::pair< int, int > normalize ( const std::pair< int, int > & p)

◆ offsetPoint()

std::pair< int, int > offsetPoint ( const std::pair< int, int > & p,
const std::pair< int, int > & direction,
double offset )

◆ toPolygon()

std::vector< std::pair< int, int > > toPolygon ( const std::vector< std::pair< int, int > > & path,
double width )