개정판 965b9c88
auto connection
Change-Id: I2848cb5dc7bd107661afd949dce1aff0ccac7408
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
455 | 455 |
try: |
456 | 456 |
#vectors = [(self.end_point()[0] - self.start_point()[0], self.end_point()[1] - self.start_point()[1]), |
457 | 457 |
# (rhs.end_point()[0] - rhs.start_point()[0], rhs.end_point()[1] - rhs.start_point()[1])] |
458 |
allowed_error = 0.01 |
|
458 | 459 |
angle = self.getAngle(rhs) |
459 |
if (angle == 0) or (angle == math.pi): return True |
|
460 |
if (abs(angle - 0) < allowed_error) or (abs(angle - math.pi) < allowed_error): |
|
461 |
return True |
|
460 | 462 |
except ZeroDivisionError: |
461 | 463 |
return True |
462 | 464 |
|
내보내기 Unified diff