From 602676bd9c7f4e19997ace6a755bde9a1e283ea2 Mon Sep 17 00:00:00 2001 From: rev Date: Wed, 17 Jan 2024 02:06:36 +0300 Subject: [PATCH] Change cross_product() return type from int to float --- supervision/geometry/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/geometry/core.py b/supervision/geometry/core.py index eadd5b91..511463cc 100644 --- a/supervision/geometry/core.py +++ b/supervision/geometry/core.py @@ -51,7 +51,7 @@ class Vector: ) * (v2.end.x - v2.start.x) return cross_product < 0 - def cross_product(self, point: Point) -> int: + def cross_product(self, point: Point) -> float: """ Determine on which side of the vector a point lies. Returns a positive number if on one side, negative if on the other, and 0 if on the line.