rotx: A 3x3 rotation matrix allowing rotation about the x-axis....

Description Usage Arguments Value Author(s) Examples

View source: R/mathematicalfunctions.R

Description

A 3x3 rotation matrix allowing rotation about the x-axis. Constructed using a cosine rotation matrix where the rotation angle in degrees is measured counterclockwise allowing positive rotation under the right hand rule.

Usage

1
rotx(angle)

Arguments

angle

a scalar representing the angle to rotate (degrees)

Value

a 3x3 matrix representing the rotation about the x-axis by the given angle

Author(s)

Christina Harvey

Examples

1
2
3
4
library(AvInertia)
angle = 90
# should return matrix [[1,0,0];[0,0,1];[0,1,0]]
rotx(angle)

AvInertia documentation built on July 22, 2021, 9:08 a.m.