View source: R/rotate_points_function.R
rotate_points | R Documentation |
Function to rotate a given set of points or point cloud in a plain around center point with a certain angle.
rotate_points(cor.df, rot.angle, rot.axis = "Z", center = c(0, 0, 0))
cor.df |
Coordinate dataframe with columns containing X-, Y- and Z-coordinate (at least two columns are required and names need to be "X", "Y" or "Z", respectively) |
rot.angle |
Rotation angle in degrees (clockwise rotation) |
rot.axis |
Rotation axis (default is "Z", can also be set to "X" or "Y") |
center |
Vector of three elements specifying the X-, Y- and Z-coordinate of the rotation center point |
Coordinate dataframe with X- and Y-coordinates after rotation
Nikolai Knapp
in progress
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.