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.
Try and do your math with pure integer arithmetic. This means your functions getDeterminant, getIntersectionX etc. should return an object (or similar) representing numerator and denominator as integers, rather than doing the divisions. Then you will know whether you have a geometry bug or a rounding error - and in the latter case you will win the kata :)
This kata needs harder test cases: non-convex polygons, and/or points aligned with one of the vertices.