开发者

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

开发者 https://www.devze.com 2023-02-14 08:52 出处:网络
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 bu

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

精彩评论

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

关注公众号