#region 判断点是否在直线上
/// <summary>
/// 判断点是否在直线上
/// </summary>
/// <param name="mousePoint">鼠标坐标</param>
/// <param name="startPoint">起始点</param>
/// <param name="endPoint">终点</param>
/// <returns></returns>
public new bool IsContains(Point mousePoint, Point startPoint, Point endPoint)
{
bool result = false;
if (Tools.GetDistance(startPoint, mousePoint) +//调用我写的计算两点距离的方法
Tools.GetDistance(mousePoint, endPoint) -//调用我写的计算两点距离的方法
Tools.GetDistance(startPoint, endPoint) < 0.1)//调用我写的计算两点距离的方法
{
result = true;
}
return result;
}
#endregion