JuliaGeometry / JuliaGeometry/GeometricalPredicates.jl
Bug in `intriangle`
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 57
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
The following code incorrectly returns 2, which according to the documentation means that the point is in the triangle:
using GeometricalPredicates
a = Point(1.1, 1.1)
b = Point(1.1,1.3)
c = Point2D(1.1, 1.4)
mytriangle = Primitive(a, b, c)
intriangle(mytriangle, Point(1.5, 1.8))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Julia example and reading the intriangle documentation and entry point. Trace how the Primitive built from the three points is classified, then add or update a regression test for this case so the result matches the documented meaning of return value 2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100