We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
you are missing three things:
1. What if origin is on one of the side of triangle
2. What if origin is one of the corner
3. Use long instead of int as multiplication of two coordinates cannot be stored in int datatype.
Project Euler #102: Triangle containment
You are viewing a single comment's thread. Return to all comments →
you are missing three things:
1. What if origin is on one of the side of triangle
2. What if origin is one of the corner
3. Use long instead of int as multiplication of two coordinates cannot be stored in int datatype.