rotation_matrix: Rotation matrix.

View source: R/sphere.R

rotation_matrixR Documentation

Rotation matrix.

Description

A matrix that rotates (0,0,1) to m_a. Note that there a many such matrices. This matrix is the combination of a rotation around y- and z-axis.

Usage

rotation_matrix(m_a)

Arguments

m_a

Vector of length two. The two angles: theta and phi.

Value

3x3


chroetz/spheregr documentation built on April 10, 2022, 12:03 a.m.