powered by
Rotate point cloud based on the roll, pitch, and yaw angles.
rotate3D(cloud, roll = 0, pitch = 0, yaw = 0, threads = 1)
A data.table with three columns describing the *XYZ* coordinates of a point cloud.
data.table
A numeric vector describing the degrees of rotation angles for roll (*X*).
numeric
A numeric vector describing the degrees of rotation angles for pitch (*Y*).
A numeric vector describing the degrees of rotation angles for yaw (*Z*). for the roll, pitch, and yaw.
An integer specifying the number of threads to use. Experiment to see what works best for your data on your hardware.
integer
A data.table with the rotation applied to cloud.
cloud
The *XYZ* coordinates are transformed to E-N-U coordinates (ENU system, East-North-Up).
# NOT RUN { data(pc_tree) rgl::plot3d(pc_tree) rgl::plot3d(rotate3D(pc_tree, roll = 45, pitch = 45, yaw = 0)) # }
Run the code above in your browser using DataLab