A line is declared with two distinct points or a point and slope as defined using keyword slope
.
from sympy import *
print("#",Line(Point(0,0),slope=1).intersection(Line(Point(0,1),Point(1,1))))
# [Point2D(1, 1)]
Go to list of users who liked
A line is declared with two distinct points or a point and slope as defined using keyword slope
.
from sympy import *
print("#",Line(Point(0,0),slope=1).intersection(Line(Point(0,1),Point(1,1))))
# [Point2D(1, 1)]
Register as a new user and use Qiita more conveniently
Go to list of users who liked