sctoff2xy(): New, factored out of sct_oninit()

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-01-27 10:22:03 +01:00
parent f2b1ea3161
commit 0f3134fc15
3 changed files with 10 additions and 4 deletions

View file

@ -65,6 +65,7 @@ extern coord strtoy(char *str, char **end);
extern coord xabs(struct natstr *np, coord relx);
extern coord yabs(struct natstr *np, coord rely);
extern int sctoff(coord x, coord y);
extern void sctoff2xy(coord *, coord *, int);
extern coord xnorm(coord x);
extern coord ynorm(coord y);
extern int xyinrange(coord x, coord y, struct range *rp);