# rMatrix: Rotation matrix along the z axis In Rknots: Topological Analysis of Knotted Proteins, Biopolymers and 3D Structures

## Description

Compute the rotation matrix by an angle θ along the z axis

## Usage

 1 rMatrix(theta) 

## Arguments

 theta The rotation angle, in radians

## Details

The counterclockwise 3 x 3 rotation matrix by an angle θ along the z axis is defined as:

≤ft[ \begin{array}{ccc} \cos θ & -\sin θ & 0 \\ \sin θ & \cos θ & 0 \\ 0 & 0 & 1 \\ \end{array} \right]

A 3 x 3 matrix

## Note

This is a low-level function.

## Author(s)

Federico Comoglio, federico.comoglio@bsse.ethz.ch

## References

Weisstein, Eric W. "Rotation Matrix." From MathWorld–A Wolfram Web Resource, http://mathworld.wolfram.com/RotationMatrix.html

## Examples

 1 2 3 4 5 ##Rotation matrix by theta = 45 degrees rMatrix(pi/4) ##to rotate clockwise by 45 degrees rMatrix(-pi/4) 

Rknots documentation built on May 1, 2019, 10:19 p.m.