You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
I was looking for building a Simple (2D) rectangle with 2 points
julia>Rectangle(Point(0,0), Point(320, 200))
ERROR: MethodError: no method matching SimpleRectangle(::Point{2,Int64}, ::Point{2,Int64})
Closest candidates are:SimpleRectangle(::T, ::T, ::T, ::T) where T at /Users/scls/.julia/dev/GeometryTypes/src/types.jl:110
Stacktrace:
[1] top-level scope at none:0
or
a Simple (2D) rectangle with one point and dimensions (width/height)
julia>Rectangle(Point(10,10), Vec(310, 190))
ERROR: MethodError: no method matching SimpleRectangle(::Point{2,Int64}, ::Vec{2,Int64})
Closest candidates are:SimpleRectangle(::Vec{2,T}, ::Vec{2,T}) where T at /Users/scls/.julia/dev/GeometryTypes/src/hyperrectangles.jl:229SimpleRectangle(::T, ::T, ::T, ::T) where T at /Users/scls/.julia/dev/GeometryTypes/src/types.jl:110
Stacktrace:
[1] top-level scope at none:0
Hello,
I was looking for building a Simple (2D) rectangle with 2 points
or
a Simple (2D) rectangle with one point and dimensions (width/height)
I saw
GeometryTypes.jl/src/hyperrectangles.jl
Lines 227 to 230 in b196d09
Maybe using
Point
type could help (to avoid confusion withVec
)?Kind regards
The text was updated successfully, but these errors were encountered: