summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2020-12-01 12:46:42 +0400
committerAndrew Guschin <saintruler@gmail.com>2020-12-01 12:46:42 +0400
commit6f4ffb090b53443338f0b3bdeb4c804383e5bb2b (patch)
tree19e059fc75e51a805cb05069a2b3439d55e60bea
parenteddc5696558b4e5819b2d524a3a703a05053a3cb (diff)
Исправил задачу 5 3D
-rw-r--r--task05_3D/Guschin/MyForm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/task05_3D/Guschin/MyForm.h b/task05_3D/Guschin/MyForm.h
index 0ba7758..94b8d4f 100644
--- a/task05_3D/Guschin/MyForm.h
+++ b/task05_3D/Guschin/MyForm.h
@@ -211,7 +211,7 @@ namespace Guschin {
}
vec2 tmpEnd = end;
- bool visible = hasStart && hasEnd && clip(start, end, minX, minY, maxX, maxY);
+ bool visible = hasStart && hasEnd && clip(start, end, Wcx_w - Wx_work, Wcy_w - Wy_work, maxX, Wcy_w);
if (visible) {
if (deltaY > 1.f) deltaY = 1.f;