Skip to content

Commit 1a8d9f6

Browse files
XFajkankith26
andauthored
Update src_c/line.c
Co-authored-by: Ankith <itsankith26@gmail.com>
1 parent 32ae369 commit 1a8d9f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src_c/line.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ _line_project_helper(pgLineBase *line, double *point, int clamp)
260260
}
261261
else if (projection[0] * projection[0] +
262262
projection[1] * projection[1] >
263-
line_vector[0] * line_vector[0] +
264-
line_vector[1] * line_vector[1]) {
263+
squared_line_length) {
265264
projection[0] = line_vector[0];
266265
projection[1] = line_vector[1];
267266
}

0 commit comments

Comments
 (0)