[TD]fix vertical section line and scale

This commit is contained in:
wandererfan
2020-05-11 21:15:22 -04:00
committed by WandererFan
parent 4bc618ca5e
commit facefa8f46
2 changed files with 2 additions and 4 deletions

View File

@@ -297,8 +297,8 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawUtil::boxIntersect2d(Base::Vector3
// y = mx + b
// m = (y1 - y0) / (x1 - x0)
if (DrawUtil::fpCompare(dir.x, 0.0) ) {
p1 = Base::Vector3d(0.0, - yRange / 2.0, 0.0);
p2 = Base::Vector3d(0.0, yRange / 2.0, 0.0);
p1 = Base::Vector3d(point.x, - yRange / 2.0, 0.0);
p2 = Base::Vector3d(point.x, yRange / 2.0, 0.0);
} else {
double slope = dir.y / dir.x;
double left = -xRange / 2.0;