getTrafoRotaxis: compute a 4x4 Transformation matrix for rotation around an...

View source: R/rotaxis.r

getTrafoRotaxisR Documentation

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 documentation built on June 22, 2024, 7:19 p.m.