rotate3d: Rotate 3D

View source: R/rotate.R

rotate3dR Documentation

Rotate 3D

Description

Rotate 3d coordinates around given angles

Usage

rotate3d(x = NULL, y = NULL, z = NULL, i = 0, j = 0, k = 0)

Arguments

x

X coordinates

y

Y coordinates

z

Z coordinates

i

Angle to rotate around in the xy plane

j

Angle to rotate around in the xz plane

k

Angle to rotate around in the yz plane

Details

Rotates x,y,z coordinates in three planes around the 0,0 center.

Value

Returns rotated x,y,z coordinates

Author(s)

Optical Imaging Centre ErasmusMC Rotterdam

Examples

rotate3d(c(100,125,175),c(175,125,100),c(150,100,100), 12,50,45)

ErasmusOIC/SMoLR documentation built on Aug. 20, 2024, 8:50 p.m.