rotate_points: Rotate points around X-, Y- or Z-axis

View source: R/rotate_points_function.R

rotate_pointsR Documentation

Rotate points around X-, Y- or Z-axis

Description

Function to rotate a given set of points or point cloud in a plain around center point with a certain angle.

Usage

rotate_points(cor.df, rot.angle, rot.axis = "Z", center = c(0, 0, 0))

Arguments

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

Value

Coordinate dataframe with X- and Y-coordinates after rotation

Author(s)

Nikolai Knapp

Examples

in progress

niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.