MCPcopy Create free account
hub / github.com/PDAL/PDAL / check_pN

Function check_pN

test/unit/Support.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337
338void check_pN(const PointView& data, PointId index, double xref, double yref, double zref)
339{
340 float x0 = data.getFieldAs<float>(Dimension::Id::X, index);
341 float y0 = data.getFieldAs<float>(Dimension::Id::Y, index);
342 float z0 = data.getFieldAs<float>(Dimension::Id::Z, index);
343
344 EXPECT_FLOAT_EQ(x0, static_cast<float>(xref));
345 EXPECT_FLOAT_EQ(y0, static_cast<float>(yref));
346 EXPECT_FLOAT_EQ(z0, static_cast<float>(zref));
347}
348
349
350void check_pN(const PointView& data, PointId index, double xref, double yref, double zref,

Callers 3

check_p0_p1_p2Function · 0.70
check_p100_p101_p102Function · 0.70
test_a_formatFunction · 0.50

Calls 1

hasDimMethod · 0.80

Tested by 1

test_a_formatFunction · 0.40