| 627 | } |
| 628 | |
| 629 | void ConvertToTiles(const float aaArea[2][2], int aaTiles[2][2]) |
| 630 | { |
| 631 | for(int i = 0; i < 2; i++) |
| 632 | { |
| 633 | aaTiles[i][0] = std::floor((std::floor(aaArea[i][0] * 100.0f) / 100.0f) / 32.0f); |
| 634 | aaTiles[i][1] = std::ceil((std::floor(aaArea[i][1] * 100.0f) / 100.0f) / 32.0f); |
| 635 | } |
| 636 | } |
| 637 | |
| 638 | bool GetLineIntersection(const float aLine1[2], const float aLine2[2], float aIntersection[2]) |
| 639 | { |
no outgoing calls
no test coverage detected