38 if ( (nOrientation >= 0_deg10) && !(nOrientation % 900_deg10) )
40 if ( nOrientation >= 3600_deg10 )
41 nOrientation %= 3600_deg10;
48 if ( nOrientation == 900_deg10 )
54 else if ( nOrientation == 1800_deg10 )
72 double nRealOrientation =
toRadians(nOrientation);
73 double nCos = cos( nRealOrientation );
74 double nSin = sin( nRealOrientation );
81 rX = +
static_cast<tools::Long>(nCos*nX + nSin*nY) + nOriginX;
82 rY = -
static_cast<tools::Long>(nSin*nX - nCos*nY) + nOriginY;
constexpr tools::Long Y() const
void setX(tools::Long nX)
void RotateAround(tools::Long &rX, tools::Long &rY, Degree10 nOrientation) const
void setY(tools::Long nY)
constexpr tools::Long X() const