MCPcopy Create free account
hub / github.com/LAStools/LAStools / get_X

Function get_X

LASzip/src/lasquantizer.hpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 };
59
60 inline I64 get_X(const F64 x) const {
61 if (x >= x_offset)
62 return (I64)(((x - x_offset) / x_scale_factor) + 0.5);
63 else
64 return (I64)(((x - x_offset) / x_scale_factor) - 0.5);
65 };
66 inline I64 get_Y(const F64 y) const {
67 if (y >= y_offset)
68 return (I64)(((y - y_offset) / y_scale_factor) + 0.5);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected