开发者

Java- Use two double arrays as inputs for the constructor "Polygon" to use the method "contains"

I was wondering if there is any sort of Polygon.double because I need to input two double [] arrays and test whether another point is contained in the polygon. I saw another post about Path2D.double but it doesn't seem to 开发者_开发技巧have any similar methods like "contains" in Polygon.


There is a contains(double x, double y) in Polygon and Path2D.Double.

EDIT:

Also check out this post.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜