math_rot_matrix2d: 2d rotation matrix

View source: R/math.R

math_rot_matrix2dR Documentation

2d rotation matrix

Description

Calculates a 2D rotation matrix for a given angle. The rotation will be applied by the right hand rule.

Usage

math_rot_matrix2d(angle)

Arguments

angle

in radiant

Details

https://en.wikipedia.org/wiki/Rotation_matrix

Value

Returns 3D rotation matrix for given axis (unit vector) and angle.

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

math_rot_matrix2d(30/180*pi)

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.