We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dad74a commit 08a00f0Copy full SHA for 08a00f0
docs/src/examples/darts.md
@@ -49,13 +49,8 @@ function to_Point3f(p::Meshes.Point)
49
return Point3f(x, y, z)
50
end
51
52
-function to_makie_poly(circle::Meshes.Circle; N=32)
53
- return [to_Point3f(circle(t)) for t in range(0, 1, length=N)]
54
-end
55
-
56
-function to_makie_poly(ngon::Meshes.Ngon)
57
- return [to_Point3f(pt) for pt in ngon.vertices]
58
+to_makie_poly(circle::Meshes.Circle; N=32) = Point3f[to_Point3f(circle(t)) for t in range(0, 1, length=N)]
+to_makie_poly(ngon::Meshes.Ngon) = Point3f[to_Point3f(pt) for pt in ngon.vertices]
59
```
60
61
## Modeling the Dartboard
0 commit comments