🐛 PointCopy 死循环导致堆栈溢出处理

This commit is contained in:
kercylan98 2023-06-20 16:12:11 +08:00
parent 25f0a068d3
commit 1e0c2c9926
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func PosToCoordinateY[V generic.SignedNumber](width, pos V) V {
// PointCopy 复制一个坐标数组 // PointCopy 复制一个坐标数组
func PointCopy[V generic.SignedNumber](point Point[V]) Point[V] { func PointCopy[V generic.SignedNumber](point Point[V]) Point[V] {
return point.Copy() return NewPoint(point.GetXY())
} }
// PointToPosWithMulti 将一组坐标转换为二维数组的顺序位置 // PointToPosWithMulti 将一组坐标转换为二维数组的顺序位置