Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b64470f04e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (15 sloc) 0.395 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "types.h"

#define OTHER_DIRS (AXES-1)

struct line_data {
int32_t *x;
int32_t *y[OTHER_DIRS];
int32_t deltax;
int32_t xstep;
int32_t x_end;
int32_t deltay[OTHER_DIRS];
int32_t errors[OTHER_DIRS];
int32_t ystep[OTHER_DIRS];
int32_t distance_squared;
};

void line_init(struct line_data *data, int32_t *from, int32_t *to, int32_t **vars);
int line_tick(struct line_data *data);
Something went wrong with that request. Please try again.