Lines Matching refs:coords

184     auto coords = originalCoords;  in subScaleCoordinatesTest()  local
185 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f, false /*clamp*/); in subScaleCoordinatesTest()
186 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
187 EXPECT_EQ(coords[i], originalCoords[i]); in subScaleCoordinatesTest()
201 coords = originalCoords; in subScaleCoordinatesTest()
202 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, false /*clamp*/); in subScaleCoordinatesTest()
203 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
204 EXPECT_LE(std::abs(coords[i] - expected2xCoords[i]), kMaxAllowedPixelError); in subScaleCoordinatesTest()
218 coords = originalCoords; in subScaleCoordinatesTest()
219 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/); in subScaleCoordinatesTest()
220 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
221 EXPECT_LE(std::abs(coords[i] - expected2xCoordsClampedInc[i]), kMaxAllowedPixelError); in subScaleCoordinatesTest()
235 coords = originalCoords; in subScaleCoordinatesTest()
236 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/); in subScaleCoordinatesTest()
237 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
238 EXPECT_LE(std::abs(coords[i] - expected2xCoordsClampedExc[i]), kMaxAllowedPixelError); in subScaleCoordinatesTest()
252 coords = originalCoords; in subScaleCoordinatesTest()
253 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f/3, false /*clamp*/); in subScaleCoordinatesTest()
254 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
255 EXPECT_LE(std::abs(coords[i] - expectedZoomOutCoords[i]), kMaxAllowedPixelError); in subScaleCoordinatesTest()