7 kyu
Collision Detection
229 of 1,632Arongil
Description:
Create a function to determine whether or not two circles are colliding. You will be given the position of both circles in addition to their radii:
bool IsCollision(float x1, float y1, float r1, float x2, float y2, float r2)
// collision?
}
If a collision is detected, return true. If not, return false.
Here's a geometric diagram of what the circles passed in represent:
Fundamentals
Similar Kata:
Stats:
Created | Aug 23, 2017 |
Published | Aug 23, 2017 |
Warriors Trained | 3041 |
Total Skips | 99 |
Total Code Submissions | 4471 |
Total Times Completed | 1632 |
JavaScript Completions | 699 |
C# Completions | 195 |
TypeScript Completions | 107 |
C Completions | 229 |
NASM Completions | 25 |
Python Completions | 486 |
COBOL Completions | 6 |
Total Stars | 41 |
% of votes with a positive feedback rating | 92% of 331 |
Total "Very Satisfied" Votes | 286 |
Total "Somewhat Satisfied" Votes | 36 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 15 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |