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

Method transform

LASlib/src/lastransform.cpp:1732–1745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730 return tranformed_coord;
1731 };
1732 inline void transform(LASpoint* point)
1733 {
1734 if (offset_adjust) {
1735 F64 x = point->get_X() * orig_x_scale_factor + raw_offset[0] * orig_x_scale_factor + orig_x_offset;
1736 F64 y = point->get_Y() * orig_y_scale_factor + raw_offset[1] * orig_y_scale_factor + orig_y_offset;
1737 F64 z = get_Z(point) * orig_z_scale_factor + raw_offset[2] * orig_z_scale_factor + orig_z_offset;
1738
1739 write_transformed_values_with_adjust_offset(x, y, z, point);
1740 } else {
1741 point->set_X(point->get_X() + raw_offset[0]);
1742 point->set_Y(point->get_Y() + raw_offset[1]);
1743 point->set_Z(point->get_Z() + raw_offset[2]);
1744 }
1745 };
1746 LASoperationTranslateRawXYZ(I32 raw_x_offset, I32 raw_y_offset, I32 raw_z_offset)
1747 {
1748 this->raw_offset[0] = raw_x_offset;

Callers

nothing calls this directly

Calls 2

get_ZMethod · 0.80
get_ZFunction · 0.50

Tested by

no test coverage detected