コード例 #1
0
        private KeyValuePair <float, float> GetRectangleCenter(LineSegment a, LineSegment b)
        {
            float one = (float)(a.GetLenght(a) / 2);
            float two = (float)(b.GetLenght(b) / 2);
            KeyValuePair <float, float> kvp = new KeyValuePair <float, float>(one, two);

            return(kvp);
        }
コード例 #2
0
 private KeyValuePair<float, float> GetRectangleCenter(LineSegment a , LineSegment b)
 {
     float one = (float)(a.GetLenght(a) / 2);
     float two = (float)(b.GetLenght(b)/2);
     KeyValuePair<float, float> kvp = new KeyValuePair<float, float>(one,two);
     return kvp;
 }