检查s2polygon是否包含s2cap

时间:2016-05-04 21:39:58

标签: java geometry

我在java中使用Google S2 library。 S2Polygon类中有一个方法可以检查当前的s2polygon是否包含在其中。

/**
* Return true if this polygon contains the given other polygon, i.e. if
* polygon A contains all points contained by polygon B.
*/
public boolean contains(S2Polygon b)

有没有办法检查S2Poly中是否包含S2Cap?看起来如果我将S2Cap转换为S2Cell列表,那么我可以检查每个单元格上的包含,但我正在寻找是否有更好的方法,因为转换为单元格是一个昂贵的过程。

0 个答案:

没有答案
相关问题