예제 #1
0
 /// <summary>
 /// True: The convex side of the vector is inside the shape.
 /// This is determined by the direction of the vector.
 /// </summary>
 /// <param name="line1"></param>
 /// <param name="line2"></param>
 /// <param name="tolerance">Tolerance by which a double is considered to be zero or equal.</param>
 /// <returns></returns>
 public static bool ConvexInside(LineSegment line1, LineSegment line2, double tolerance = ZeroTolerance)
 {
     return(VectorLibrary.IsConvexInside(line1.ToVector(), line2.ToVector(), tolerance));
 }