Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Dec 18, 2024
1 parent dd528cc commit fbaaed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometries/polytopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ function (c::Chain)(t)
throw(DomainError(t, "c(t) is not defined for t outside [0, 1]."))
end
n = nvertices(c) - !isclosed(c)
k = max(1, ceil(Int, n * t))
k = min(n - 1, floor(Int, n * t))
s, _ = iterate(segments(c), k)
s(n * t - k + 1)
s(n * t - k)
end

# implementations of Chain
Expand Down

0 comments on commit fbaaed5

Please sign in to comment.