Esempio n. 1
0
 /// <summary>
 /// * Checks if 2 items are on the same line.
 /// </summary>
 /// <param name="i1">first item</param>
 /// <param name="i2">second item</param>
 /// <returns>true if items are on the same line, otherwise false</returns>
 static bool AreOnSameLine(MyItem i1, MyItem i2)
 {
     return(Math.Abs(i1.GetLL().y - i2.GetLL().y) <= MyItem.ItemPositionTolerance);
 }
Esempio n. 2
0
 /// <summary>
 /// * Checks if 2 items are on the same line.
 /// </summary>
 /// <param name="i1">first item</param>
 /// <param name="i2">second item</param>
 /// <returns>true if items are on the same line, otherwise false</returns>
 static bool AreOnSameLine(MyItem i1, MyItem i2)
 {
     return Math.Abs(i1.GetLL().y - i2.GetLL().y) <= MyItem.ItemPositionTolerance;
 }