Learn R Programming

vectools (version 0.3.0)

77_other_transformation_matrices: Other Transformation Matrices

Description

Convenience function for a set of circular rotation matrices.

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

See Also

Binary Operators

MatrixArray

Pre-Multiplication Transformation Matrices

Post-Multiplication Transformation Matrices

vt3.testplot

Examples

Run this code
# NOT RUN {
#equivalent to:
#vt3.testplot (regPolygon (6, d=4) )
ps <- c (0, 4) %|*% eq.brot2 (6, start = pi / 6)
v <- as.Polygon (ps)
vt3.testplot (v)
# }

Run the code above in your browser using DataLab