getBresenham2DSegment {AFM}R Documentation

get a segment of points thanks to Bresenham line algorithm

Description

getBresenham2DSegment return the Bresenham segment in 2D from extremities coordinates

Usage

getBresenham2DSegment(x1, y1, x2, y2)

Arguments

x1

abscissa coordinates of the first point

y1

ordinate coordinates of the first point

x2

abscissa coordinates of the second point

y2

ordinate coordinates of the second point

Value

a data.table of points - data.table(x, y)

Author(s)

M.Beauvais


[Package AFM version 2.0 Index]