コード例 #1
0
ファイル: IntersectionRay2.cs プロジェクト: mh-soft/mh-master
        // Token: 0x0600025A RID: 602 RVA: 0x0000A2F8 File Offset: 0x000084F8
        public static ICollection <Vector2> IntersectionPointsWith(this Ray2 ray, Arc2 arc)
        {
            IntersectionRay2Arc2 intersectionRay2Arc = new IntersectionRay2Arc2(ray, arc);

            intersectionRay2Arc.Find();
            List <Vector2> list = new List <Vector2>();

            Vector2[] array = new Vector2[]
            {
                intersectionRay2Arc.Point0,
                intersectionRay2Arc.Point1
            };
            for (int i = 0; i < intersectionRay2Arc.Quantity; i++)
            {
                list.Add(array[i]);
            }
            return(list);
        }
コード例 #2
0
ファイル: IntersectionRay2.cs プロジェクト: mh-soft/mh-master
        // Token: 0x06000259 RID: 601 RVA: 0x0000A2D8 File Offset: 0x000084D8
        public static bool Intersects(this Ray2 ray, Arc2 arc)
        {
            IntersectionRay2Arc2 intersectionRay2Arc = new IntersectionRay2Arc2(ray, arc);

            return(intersectionRay2Arc.Find());
        }