Commit 5973902a authored by 潘栩锋's avatar 潘栩锋 🚴

添加 RangeStruct 添加 放大缩小函数

parent ba980501
......@@ -256,6 +256,19 @@ namespace Misc
End = a.End - b
};
}
/// <summary>
/// 向外扩大
/// </summary>
/// <param name="b"></param>
/// <returns></returns>
public RangeStruct ZoomIn(int b)
{
return new RangeStruct(Begin - b, End + b);
}
public RangeStruct ZoomIn(int b, int e)
{
return new RangeStruct(Begin - b, End + e);
}
/// <summary>
/// 是否有交集
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment