Learn R Programming

sequence (version 2.0)

homoth: Homothety

Description

Homothety (scaling) of center centre and of factor scale on an object form

Usage

homoth(form = rbind(c(0, 1), c(1, 1)), centre = c(0, 1), scale = 0.5)

Arguments

form

matrix: with two columns x and y. Set of points making the shape

centre

vector: Coordinates of the homothety center

scale

numeric: Homothety ratio

Value

A matrix, transformed from form after homothety.

Details

Utilitary used by smartArrow

See Also

smartArrow

Examples

Run this code
# NOT RUN {
homoth(rbind(c(0,sqrt(2)/2),c(0,sqrt(2)/2)),c(0,0),2)

# }

Run the code above in your browser using DataLab