I am trying to create a Polygon class in a scripting language and thought it would be easy to look in other languages like Java to find out how they handle stuff like "containsPoint(float x, float y)" and "intersectsWith(Polygon p)".
For containsPoint(), it wasn't really hard to copy that from Java, but when trying to read Area.intersect() (which is also what I need), I found that it uses AreaOp.calculate() to create the intersection area, but the code of that function is compiled and I can't see it.
Is it allowed to see the code and if so, where can I see it? Or are there other examples that I can use to find intersection area of Polygons/Areas?