コード例 #1
0
    public static bool IsSecondHoleInFirst(List <Vector3> first, List <Vector3> second)
    {
        var rayStart          = second[0];
        var rayEnd            = second[1];
        var intersectionCount = Triangulator.DoesIntersect(rayStart, rayEnd, first, countAllIntersections: true, treatRayAsUnbounded: true);

        return(intersectionCount % 2 == 1);
    }