Skip to content

Commit

Permalink
PolygonOps -> contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Feb 9, 2024
1 parent 52a6238 commit b3459d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FFMPEG = "0.4"
FileIO = "1"
LaTeXStrings = "1.1, 1.2, 1.3"
MathTeXEngine = "0.5"
PolygonAlgorithms = "0.1, 0.2"
PolygonAlgorithms = "0.2"
PrecompileTools = "1"
Rsvg = "1.0"
julia = "1.9"
Expand Down
2 changes: 1 addition & 1 deletion src/polygonalgorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If `allowonedge` is false, a point lying on the polygon is not inside.
Returns true if it does, or false.
"""
isinside(pt::Point, pgon::Array{Point,1}; allowonedge = false) =
PA.point_in_polygon(_point_to_tuple(pt), _points_to_tuples(pgon);
PA.contains(_points_to_tuples(pgon), _point_to_tuple(pt);
on_border_is_inside = allowonedge)

"""
Expand Down

0 comments on commit b3459d6

Please sign in to comment.