💥 CoordinateArray 更名为 Point

This commit is contained in:
kercylan98
2023-06-20 15:56:16 +08:00
parent d5884db63e
commit 25f0a068d3
9 changed files with 54 additions and 54 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ func GetDirectionNextWithCoordinate[V generic.SignedNumber](direction Direction,
return
}
// GetDirectionNextWithCoordinateArray 获取特定方向上的下一个坐标
func GetDirectionNextWithCoordinateArray[V generic.SignedNumber](direction Direction, point Point[V]) Point[V] {
// GetDirectionNextWithPoint 获取特定方向上的下一个坐标
func GetDirectionNextWithPoint[V generic.SignedNumber](direction Direction, point Point[V]) Point[V] {
x, y := point.GetXY()
switch direction {
case DirectionUp: