Realized that I had missed something else as well. Anyway, here is the
proposed fix:
diff --git a/sympy/geometry/point.py b/sympy/geometry/point.py
index 4e941a1..c524c61 100644
--- a/sympy/geometry/point.py
+++ b/sympy/geometry/point.py
@@ -151,6 +151,7 @@ def length(self):
"""
return S.Zero
+ @classmethod
def is_collinear(*points):
"""Is a sequence of points collinear?
@@ -208,7 +209,11 @@ def is_collinear(*points):
"""
# Coincident points are irrelevant and can confuse this algorithm.
# Use only unique points.
- points = list(set(points))
+ points = list(set(points[1:]))
+
+ if not all([isinstance(p, Point) for p in points]):
+ raise GeometryError('Must pass only point objects')
+
if len(points) == 0:
return False
if len(points) <= 2:
Best,
Amit.
--
http://echorand.me