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

Function set_z

LASzip/src/laspoint.hpp:766–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764 return I32_FITS_IN_RANGE(Y);
765 };
766 inline BOOL set_z(const F64 z) {
767 if (quantizer->z_from_attrib < 0) {
768 I64 Z = quantizer->get_Z(z);
769 this->Z = (I32)(Z);
770 return I32_FITS_IN_RANGE(Z);
771 } else {
772 // set Z in extrabyte - scaled to I32
773 set_attribute_as_float(quantizer->z_from_attrib, z);
774 return TRUE;
775 }
776 };
777 U8 get_classification() const {
778 if (extended_point_type) {
779 return extended_classification;

Callers 1

compute_XYZFunction · 0.85

Calls 2

set_attribute_as_floatFunction · 0.85
get_ZMethod · 0.80

Tested by

no test coverage detected