rotate: Apply a rotation of vectors in the 1-2 plane about the 3-axis

View source: R/rotations.R

rotateR Documentation

Apply a rotation of vectors in the 1-2 plane about the 3-axis

Description

Apply a rotation of vectors in the 1-2 plane about the 3-axis

Usage

rotate(X1, X2 = NULL, theta.deg = 0, hand.rule = c("right", "left"))

## Default S3 method:
rotate(X1, X2 = NULL, theta.deg = 0, hand.rule = c("right", "left"))

Arguments

X1

numeric; 1-axis components

X2

numeric; 2-axis components

theta.deg

numeric; the rotation, in degrees, to apply

hand.rule

character; the sense of rotation

...

additional parameters

Details

If X2 is null the function assumes X1 is a two column object, and that the first column is the 1-axis information.

hand.rule determines whether the rotation is clockwise ("left") or–the default–anti-clockwise ("right").


abarbour/strain documentation built on Dec. 10, 2024, 10:58 p.m.