14 #ifndef _BOARD_TRANSFORMS_H_
15 #define _BOARD_TRANSFORMS_H_
35 virtual double mapX(
double x )
const;
36 virtual double mapY(
double y )
const = 0;
37 virtual void apply(
double & x,
double & y )
const;
38 virtual double scale(
double x )
const;
39 virtual double rounded(
double x )
const;
41 const double pageWidth,
42 const double pageHeight,
43 const double margin ) = 0;
45 static inline double round(
const double & x );
61 double mapY(
double y )
const;
63 const double pageWidth,
64 const double pageHeight,
65 const double margin );
76 double rounded(
double x )
const;
77 double mapY(
double y )
const;
80 const double pageWidth,
81 const double pageHeight,
82 const double margin );
97 double rounded(
double x )
const;
98 double mapY(
double y )
const;
99 double mapWidth(
double width )
const;
101 const double pageWidth,
102 const double pageHeight,
103 const double margin );
114 double rounded(
double x )
const;
115 double mapY(
double y )
const;
116 double mapWidth(
double width )
const;
118 const double pageWidth,
119 const double pageHeight,
120 const double margin );
132 #include "Transforms.ih"
Struct representing a rectangle on the plane.