reduce_matrix: Remove redundant points

Description Usage Arguments Value Examples

Description

Remove redundant points

Usage

1

Arguments

points

A matrix with two columns, named x and y respectively. Corresponding to the vertices points.

Value

A matrix with two columns, named x and y respectively. Corresponding to the vertices points.

Examples

1
2
3
4
X <- data.frame(x = c(1, 1, 1, 2, 3),
                y = c(1, 2, 3, 2, 2))
points <- tetris(X)
reduce_matrix(points)

EmilHvitfeldt/ggtetris documentation built on May 29, 2019, 2:48 p.m.