summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e082a7c)
raw | patch | inline | side by side (parent: e082a7c)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 4 Feb 2008 19:18:14 +0000 (19:18 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 4 Feb 2008 19:18:14 +0000 (19:18 +0000) |
src/display/canvas-axonomgrid.cpp | patch | blob | history |
index 79e301b7350d707b2106d1ced3cd75bfbb021c7e..ef3a8eae28818c93b572d45c991ff1a242773e0b 100644 (file)
// z-axis always goes from bottomleft to topright. (0,1) - (1,0)
gdouble const zintercept_y_bc = (buf_tl_gc[NR::X] * -tan_angle[Z]) - buf_tl_gc[NR::Y] ;
gdouble const zstart_y_sc = ( zintercept_y_bc - floor(zintercept_y_bc/lyw)*lyw ) + buf->rect.y0;
- gint const zlinestart = (gint) Inkscape::round( (zstart_y_sc + buf->rect.x0*tan_angle[X] - ow[NR::Y]) / lyw );
+ gint const zlinestart = (gint) Inkscape::round( (zstart_y_sc + buf->rect.x0*tan_angle[Z] - ow[NR::Y]) / lyw );
gint zlinenum = zlinestart;
// lines starting from left side
for (y = zstart_y_sc; y < buf->rect.y1; y += lyw, zlinenum++) {