Ejemplo n.º 1
0
 public static bool SlopesEqual0(Point2D a, Point2D b, Point2D c, bool UseFullRange = false)
 {
     return(UseFullRange ? BigInteger.Multiply((BigInteger)(a.Y - b.Y), (BigInteger)(b.X - c.X)) == BigInteger.Multiply((BigInteger)(a.X - b.X), (BigInteger)(b.Y - c.Y))
         : ((a.Y - b.Y) * (b.X - c.X)) - ((a.X - b.X) * (b.Y - c.Y)) == 0);
 }
Ejemplo n.º 2
0
 public static bool SlopesEqual(Point2D a, Point2D b, Point2D c, bool UseFullRange = false)
 => SlopesEqual0(a, b, c, UseFullRange);