Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer dir gives error #16

Open
LilithHafner opened this issue Dec 27, 2021 · 1 comment
Open

Integer dir gives error #16

LilithHafner opened this issue Dec 27, 2021 · 1 comment

Comments

@LilithHafner
Copy link
Contributor

Perhaps you don't intend to support this, but in that case documentation or a better error would be nice

julia> closest_points(polyA, polyB, @SVector[1,0])
ERROR: MethodError: no method matching eps(::Type{Int64})
Closest candidates are:
  eps() at /Applications/Julia-1.7.1.app/Contents/Resources/julia/share/julia/base/float.jl:855
  eps(::T) where T<:Dates.TimeType at /Applications/Julia-1.7.1.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Dates/src/types.jl:444
  eps(::ColorTypes.Gray{T}) where T at ~/.julia/packages/ColorVectorSpace/CPykb/src/ColorVectorSpace.jl:213
  ...
Stacktrace:
 [1] closest_points(p::StaticArrays.SMatrix{2, 11, Float64, 22}, q::StaticArrays.SMatrix{2, 11, Float64, 22}, init_dir::StaticArrays.SVector{2, Int64})
   @ ConvexBodyProximityQueries ~/.julia/packages/ConvexBodyProximityQueries/RdbUo/src/proximity.jl:22
 [2] top-level scope
   @ none:1
@arlk
Copy link
Owner

arlk commented Dec 27, 2021

I derive the type from the direction vector - not sure why I did it this way instead of converting the type if it were an Int. I'll push a fix for this over the next month. Thanks for catching it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants