Two lines cleary interssecting raising the error of not interssecting
#1,930 opened on 2021年8月19日
Repository metrics
- Stars
- (17,820 stars)
- PR merge metrics
- (平均マージ 90d 10h) (30d で 31 merged PRs)
説明
Description of bug / unexpected behavior
I'm trying to make an animation where there are two lines and an angle between then, and this angle may change so the lines are constantly updating
But when I run the code it says "ValueError: Lines do not interssect", when the lines clearly interssect
How to reproduce the issue
Here's a code doing a similar thing of what i'm doing on my animation
from manim import *
class RotatingLine(Scene):
def construct(self):
theta = ValueTracker(60 * DEGREES)
base_line = Line(LEFT * 2, RIGHT * 2)
rotating_line = base_line.copy()
rotating_line.add_updater(lambda mobj: mobj.become(base_line.copy().rotate(theta.get_value())))
angle = always_redraw(
lambda: Angle(base_line, rotating_line)
)
self.add(base_line, rotating_line, angle)
self.play(theta.animate.set_value(30 * DEGREES))
Additional media files
Here's what the animation would look like without the angle part, and it's clear that the lines are interssecting

Logs
https://pastebin.com/VxfDS7yW
Additional comments
I'm new into coding so at first I thought if this was me not knowing how to do something, but after testing I could see this is not really how this is supposed to work, so any kind of help would be welcome