示例#1
0
        public override PointF[] Collides(Duz A)
        {
            List <PointF> preseci = new List <PointF>();

            PointF[] K;
            for (int i = 0; i < 3; i++)
            {
                K = new Duz(temena[i], temena[i + 1]).Collides(A);
                if (K != null)
                {
                    preseci.Add(K[0]);
                }
            }

            K = new Duz(temena[3], temena[0]).Collides(A);
            if (K != null)
            {
                preseci.Add(K[0]);
            }

            return(preseci.ToArray());
        }
示例#2
0
 public abstract PointF[] Collides(Duz a);