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

Function get_Z

LASzip/src/lasquantizer.hpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 return (I64)(((y - y_offset) / y_scale_factor) - 0.5);
71 };
72 inline I64 get_Z(const F64 z) const {
73 if (z >= z_offset)
74 return (I64)(((z - z_offset) / z_scale_factor) + 0.5);
75 else
76 return (I64)(((z - z_offset) / z_scale_factor) - 0.5);
77 };
78
79 // input: z_attrib in scale 0.01 or 0.001; output as int in header scale
80 I64 get_zai(const F64 z) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected