Learn R Programming

vectools (version 0.2.0)

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.

Value

A MatrixArray of 3x3 rotation matrices.

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).

References

.

See Also

Binary Operators

MatrixArray

Pre-Multiplication Transformation Matrices

Post-Multiplication Transformation Matrices

polyplot

Examples

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

Run the code above in your browser using DataLab