Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getTrafoRotaxis

compute a 4x4 Transformation matrix for rotation around an arbitrary axis


Description

compute a 4x4 Transformation matrix for rotation around an arbitrary axis

Usage

getTrafoRotaxis(pt1, pt2, theta)

Arguments

pt1

numeric vector of length 3, defining first point on the rotation axis.

pt2

numeric vector of length 3, defining second point on the rotation axis.

theta

angle to rotate in radians. With pt1 being the viewpoint, the rotation is counterclockwise.

Note

the resulting matrix can be used in applyTransform


Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.