增加圆形相关处理函数

This commit is contained in:
kercylan98
2023-06-20 19:42:38 +08:00
parent da94e20de6
commit 7e29a6017e
2 changed files with 15 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ import (
"github.com/kercylan98/minotaur/utils/geometry"
)
func ExampleGenerateCircle() {
fmt.Println(geometry.GenerateCircle[float64](7, 12))
func ExampleNewCircle() {
fmt.Println(geometry.NewCircle[float64](7, 12))
// Output:
// [[0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [7 0] [6.062177826491071 3.4999999999999996] [3.500000000000001 6.06217782649107] [4.28626379701573e-16 7] [-3.4999999999999982 6.062177826491071] [-6.0621778264910695 3.500000000000002] [-7 8.57252759403146e-16] [-6.062177826491071 -3.4999999999999982] [-3.500000000000003 -6.062177826491069] [-1.285879139104719e-15 -7] [3.499999999999995 -6.062177826491074] [6.062177826491069 -3.500000000000003]]