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

Method set_offset

LASlib/src/lasreader_txt.cpp:1097–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097void LASreaderTXT::set_offset(const F64* offset)
1098{
1099 if (offset)
1100 {
1101 if (this->offset == 0) this->offset = new F64[3];
1102 this->offset[0] = offset[0];
1103 this->offset[1] = offset[1];
1104 this->offset[2] = offset[2];
1105 orig_x_offset = offset[0];
1106 orig_y_offset = offset[1];
1107 orig_z_offset = offset[2];
1108 }
1109 else if (this->offset)
1110 {
1111 delete[] this->offset;
1112 this->offset = 0;
1113 }
1114}
1115
1116void LASreaderTXT::add_attribute(I32 data_type, const char* name, const char* description, F64 scale, F64 offset, F64 pre_scale, F64 pre_offset, F64 no_data)
1117{

Callers 1

openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected