Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

62_other_transformation_matrices

Other Transformation Matrices


Description

Convenience function for a set of circular rotations.

Usage

eq.arot2 (n, ..., start=0)
eq.brot2 (n, ..., start=0)

Arguments

n

Integer, the number of distinct points.

start

Numeric, giving the starting angle in radians.

...

Ignored.

Details

These functions are wrappers for arot2 and brot2.

They compute a vector of equally-spaced theta values, around a circle.
Then construct the transformation matrices using the theta values.

This can be used to create polygons.

Note that swapping functions, reverses the direction of rotation.
(e.g. Changing eq.arot2 to eq.brot2).

Value

A MatrixArray of 3x3 rotation matrices.

References

.

See Also

Examples

########################################
#refer to:
#Pre-Multiplication or Post-Multiplication
#for better examples
########################################
ps <- c (0, 4) %|*% eq.brot2 (8, start = pi / 8)
polyplot (ps)

vectools

Advanced Vector Toolkit

v0.2.0
GPL (>= 2)
Authors
Abby Spurdle
Initial release
2020-10-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.