rotateAxes: Rotate axes

View source: R/calculations.R

rotateAxesR Documentation

Rotate axes

Description

Rotate axes

Usage

rotateAxes(x, y, angle, inverse = FALSE)

Arguments

x

a numeric vector of the x-component value(s)

y

a numeric vector of the y-component value(s)

angle

rotation angle in degrees

inverse

logical value indicating whether or not to do inverse transformation, default is FALSE.

Details

This function rotates points in a x-y Cartesian coordinate system. Setting inverse = TRUE is effectively the same as multiplying the provided angle by -1, so for example, providing parameters angle = 50 and inverse = TRUE would give the same results providing parameters angle = -50 and inverse = FALSE.

Value

list of rotated x and y components as X and Y.

Author(s)

Chantelle Layton

References

  1. Basic explanation for rotation of axes https://en.wikipedia.org/wiki/Rotation_of_axes


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.