Skip to content

Commit

Permalink
add extra method
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed May 5, 2022
1 parent e94766e commit dd13025
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Geometry/coordinates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ Base.:(*)(x::Number, p::AbstractPoint) = p * x
Base.:(/)(p::T, x::Number) where {T <: AbstractPoint} =
unionalltype(T)((components(p) / x)...)

Base.LinRange(start::T, stop::T, length::Integer) where {T <: Abstract1DPoint} =
Base.LinRange{T}(start, stop, length)

# we add our own method to this so that `BigFloat` coordinate ranges are computed accurately.
function Base.lerpi(
j::Integer,
Expand Down

0 comments on commit dd13025

Please sign in to comment.