MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConvertToTiles

Function ConvertToTiles

src/tools/map_replace_area.cpp:629–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void 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
638bool GetLineIntersection(const float aLine1[2], const float aLine2[2], float aIntersection[2])
639{

Callers 2

RemoveDestinationTilesFunction · 0.85
ReplaceDestinationTilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected