Skip to content

Commit

Permalink
Add constructor for other number types
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Lycken committed Jun 28, 2014
1 parent 67e9544 commit 434feba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Contour.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ type ContourLevel
level::Float64
lines::Vector{Curve2{Float64}}
end
ContourLevel(h) = ContourLevel(h, Curve2{Float64}[])
ContourLevel(h::Float64) = ContourLevel(h, Curve2{Float64}[])
ContourLevel(h::Real) = ContourLevel(float64(h))

export ContourLevel, Curve2, contour, contours

Expand Down

0 comments on commit 434feba

Please sign in to comment.