Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
matt439 committed Sep 30, 2024
1 parent 6e14f36 commit ace150c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coresdk/src/coresdk/circle_geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace splashkit_lib

// Circle and triangle intersect if the squared distance from circle
// center to point p is less than the squared circle radius
return vector_magnitude_sqared(vector_point_to_point(c.center, p)) < c.radius * c.radius;
return vector_magnitude_squared(vector_point_to_point(c.center, p)) < c.radius * c.radius;
}

point_2d closest_point_on_triangle_from_circle(const circle &c, const triangle &tri)
Expand Down

0 comments on commit ace150c

Please sign in to comment.