Пример #1
0
 /// <summary>
 /// شیب خط
 /// </summary>
 /// <param name="l"></param>
 /// <returns></returns>
 public static Double slope(line l)
 {
     return((l.EndPoint.getY() - l.StartPoint.getY()) / (l.EndPoint.getX() - l.StartPoint.getX()));
 }
Пример #2
0
 /// <summary>
 /// طول خط
 /// </summary>
 /// <param name="l"></param>
 /// <returns></returns>
 public static Double lengh(line l)
 {
     return(point.distance(l.StartPoint, l.EndPoint));
 }