Skip to content

Commit

Permalink
use Point2 instead of Point2f in pie
Browse files Browse the repository at this point in the history
  • Loading branch information
ctarn committed Jul 15, 2024
1 parent 604c0c6 commit e6356a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic_recipes/pie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ function plot!(plot::Pie)

# curve points
points = map(LinRange(sta, en, nvertices)) do rad
Point2f(cos(rad + offset) * radius + x, sin(rad + offset) * radius + y)
Point2(cos(rad + offset) * radius + x, sin(rad + offset) * radius + y)

Check warning on line 64 in src/basic_recipes/pie.jl

View check run for this annotation

Codecov / codecov/patch

src/basic_recipes/pie.jl#L64

Added line #L64 was not covered by tests
end

# add inner points (either curve or one point)
if inner_radius != 0
inner_points = map(LinRange(en, sta, nvertices)) do rad
Point2f(cos(rad + offset) * inner_radius + x, sin(rad + offset) * inner_radius + y)
Point2(cos(rad + offset) * inner_radius + x, sin(rad + offset) * inner_radius + y)

Check warning on line 70 in src/basic_recipes/pie.jl

View check run for this annotation

Codecov / codecov/patch

src/basic_recipes/pie.jl#L70

Added line #L70 was not covered by tests
end
append!(points, inner_points)
else
push!(points, Point2f(x, y))
push!(points, Point2(x, y))

Check warning on line 74 in src/basic_recipes/pie.jl

View check run for this annotation

Codecov / codecov/patch

src/basic_recipes/pie.jl#L74

Added line #L74 was not covered by tests
end

points
Expand Down

0 comments on commit e6356a6

Please sign in to comment.