Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
C tests have test harness warning:
fixture.c:11:52: warning: implicitly declaring library function 'sqrt' with type 'double (double)' [-Wimplicit-function-declaration]
cr_assert_eq(IsCollision(-5, 5, 5.0001, 5, -5, 5*sqrt(5)), true, "Expected true.");
^
fixture.c:11:52: note: include the header <math.h> or explicitly provide a declaration for 'sqrt'
1 warning generated.
colliding
it is likely to be interpreted astouching
by some users. Why not use the more specific and mathematically correct termintersecting
?The intersection can be one or more points, it covers any scenario, from touching to full overlapping.
C# random tests are not guaranteed to fail this qwerty solution and this almost identical one.