コード例 #1
0
        public bool TestAABBIntersect(GeoAABB2 aabb)
        {
            GeoInsectPointArrayInfo insect = new GeoInsectPointArrayInfo();

            return(GeoSegmentUtils.IsSegmentInsectAABB2(mSeg.mP1, mSeg.mP2, aabb.mMin, aabb.mMax, ref insect));
        }
コード例 #2
0
 // aabb
 public static bool IsAABBInsectSegment2(Vector2 min, Vector2 max, Vector2 seg1, Vector2 seg2, ref GeoInsectPointArrayInfo insect)
 {
     return(GeoSegmentUtils.IsSegmentInsectAABB2(seg1, seg2, min, max, ref insect));
 }