Transforms the given coords one step forward to normalized space, without using any block rotation or predecessor.
| 303 | // Transforms the given coords one step forward to normalized space, without |
| 304 | // using any block rotation or predecessor. |
| 305 | void DENORM::LocalNormTransform(const TPOINT& pt, TPOINT* transformed) const { |
| 306 | FCOORD src_pt(pt.x, pt.y); |
| 307 | FCOORD float_result; |
| 308 | LocalNormTransform(src_pt, &float_result); |
| 309 | transformed->x = IntCastRounded(float_result.x()); |
| 310 | transformed->y = IntCastRounded(float_result.y()); |
| 311 | } |
| 312 | void DENORM::LocalNormTransform(const FCOORD& pt, FCOORD* transformed) const { |
| 313 | FCOORD translated(pt.x() - x_origin_, pt.y() - y_origin_); |
| 314 | if (x_map_ != NULL && y_map_ != NULL) { |
no test coverage detected