Irescale (version 0.2.6)

coor: Transforms a x,y position in a cartesian plane into a position in a 1D array.

Description

coor Transforms a x,y position in a cartesian plane into a position in a 1D array.

Usage

coor(i, j, size)

Arguments

i,

the value of the row.

j,

the value of the column.

size,

the maximum between row and columns of the matrix.

Value

an integer value that represents the position in the array.

Examples

Run this code
# NOT RUN {
pos<-coor(1,1,10)
# }

Run the code above in your browser using DataLab