Skip to content

Intersections of lines with Int parameters crash #155

@racinmat

Description

@racinmat
using GeometryBasics
intersects(Line(Point(-1, 0), Point(1, 0)), Line(Point(0, -1), Point(0, 1)))

crashes with

julia> intersects(Line(Point(-1, 0), Point(1, 0)), Line(Point(0, -1), Point(0, 
1)))
ERROR: LoadError: MethodError: no method matching Int64(::Irrational{:π})      
Closest candidates are:
  (::Type{T})(::T) where T<:Number at C:\Users\racinsky\AppData\Local\Programs\Julia-1.7.0\share\julia\base\boot.jl:770
  (::Type{T})(::AbstractChar) where T<:Union{Int32, Int64} at C:\Users\racinsky\AppData\Local\Programs\Julia-1.7.0\share\julia\base\char.jl:51
  (::Type{T})(::AbstractChar) where T<:Union{AbstractChar, Number} at C:\Users\racinsky\AppData\Local\Programs\Julia-1.7.0\share\julia\base\char.jl:50        
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions