VG3_line_positions()
[added in version 1.4]
Set an array with positions on a line between a start- and end-position.
SYNTAX
int
VG3_line_positions(struct vg3_rect*rect1,
struct vg3_rect*rect2,
int stepsize,
struct vg3_rect**rectpos)
FUNCTION PARAMETERS
rect1 | Start-position |
rect2 | End-position |
stepsize | Distance in pixels of the return-positions from each other |
rectpos | For returning allocated array with positions, it returns NULL if no position was set |
RETURN VALUE
Returns the number of positions in rectpos.
DESCRIPTION
Create an array with positions,
which are on a line between a start-position and an end-position.