更新时间:2023-02-26 13:44:37
You should be able to get the intersection of two Paths by the FillContainsWithDetail
method of their geometries:
var intersectionDetail = path1.Data.FillContainsWithDetail(path2.Data);
if (intersectionDetail != IntersectionDetail.NotCalculated &&
intersectionDetail != IntersectionDetail.Empty)
{
// collision
}