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

Method inside_circle

LASlib/src/lasreadermerged.cpp:1286–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286BOOL LASreaderMerged::inside_circle(const F64 center_x, const F64 center_y, const F64 radius)
1287{
1288 inside = 2;
1289 c_center_x = center_x;
1290 c_center_y = center_y;
1291 c_radius = radius;
1292 c_radius_squared = radius * radius;
1293 orig_min_x = header.min_x;
1294 orig_min_y = header.min_y;
1295 orig_max_x = header.max_x;
1296 orig_max_y = header.max_y;
1297 header.min_x = center_x - radius;
1298 header.min_y = center_y - radius;
1299 header.max_x = center_x + radius;
1300 header.max_y = center_y + radius;
1301 return TRUE;
1302}
1303
1304BOOL LASreaderMerged::inside_rectangle(const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y)
1305{

Callers 1

open_next_fileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected