Skip to content

Commit 2401414

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ _line_project_helper(pgLineBase *line, double *point, int clamp)
224224
{
225225
// this is a vector that goes from one point of the line to another
226226
double line_vector[2] = {line->bx - line->ax, line->by - line->ay};
227-
double squred_line_length =
227+
double squared_line_length =
228228
line_vector[0] * line_vector[0] + line_vector[1] * line_vector[1];
229229

230230
if (squred_line_length == 0.0 && clamp) {

0 commit comments

Comments
 (0)