Skip to content

Commit

Permalink
Remove unused comma in the JavaScript function statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kkpan11 committed Jul 24, 2023
1 parent d479333 commit fac9fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/games/techniques/3d_collision_detection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function isPointInsideSphere(point, sphere) {
// we are using multiplications because is faster than calling Math.pow
const distance = Math.sqrt(
(point.x - sphere.x) * (point.x - sphere.x) +
(point.y - sphere.y) * (point.y - sphere.y) +
(point.z - sphere.z) * (point.z - sphere.z),
(point.y - sphere.y) * (point.y - sphere.y) +
(point.z - sphere.z) * (point.z - sphere.z)
);
return distance < sphere.radius;
}
Expand Down

0 comments on commit fac9fb1

Please sign in to comment.