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

Method transform

LASlib/src/lastransform.cpp:1688–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686 return tranformed_coord;
1687 };
1688 inline void transform(LASpoint* point)
1689 {
1690 if (offset_adjust) {
1691 F64 x = point->get_X() * orig_x_scale_factor + orig_x_offset;
1692 F64 y = point->get_Y() * orig_y_scale_factor + orig_y_offset;
1693 F64 z = get_Z(point) * orig_z_scale_factor + offset * orig_z_scale_factor + orig_z_offset;
1694
1695 write_transformed_values_with_adjust_offset(x, y, z, point);
1696 } else {
1697 point->set_Z(point->get_Z() + offset);
1698 }
1699 };
1700 LASoperationTranslateRawZ(I32 offset)
1701 {
1702 this->offset = offset;

Callers

nothing calls this directly

Calls 2

get_ZMethod · 0.80
get_ZFunction · 0.50

Tested by

no test coverage detected