增加圆形相关处理函数

This commit is contained in:
kercylan98 2023-06-20 17:40:09 +08:00
parent c0570392bf
commit da94e20de6
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (slf Shape[V]) Contains(point Point[V]) bool {
// ToCircle 将形状转换为圆形进行处理
// - 当形状非圆形时将会产生意外情况
func (slf Shape[V]) ToCircle() Circle[V] {
return Circle[V]{slf}
return Circle[V]{Shape: slf}
}
// String 将该形状转换为可视化的字符串进行返回