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

Point.InPolygon is not correct #411

Closed
chuongmep opened this issue Mar 1, 2023 · 1 comment · Fixed by #419
Closed

Point.InPolygon is not correct #411

chuongmep opened this issue Mar 1, 2023 · 1 comment · Fixed by #419
Assignees
Labels
bug 🐛 Issues describing a bug or pull requests fixing a bug. minor Pull requests requiring a minor version update according to semantic versioning.

Comments

@chuongmep
Copy link
Contributor

chuongmep commented Mar 1, 2023

As description below, I created sample 3 point and one point to check, but value expect is not equal 1

  var testPolygon2 = new GShark.Geometry.Polygon(new Point3[] {
                new Point3(10.00,0,0.00),
                new Point3(-5.00,8.660,0.00),
                new Point3(-5.00,-8.660,0.00),
             
            });
            var p3 = new Point3(5, 0, 0);
var pointIsInside2 = p3.InPolygon(testPolygon2);
 pointIsInside2.Should().Be(1);

public int InPolygon(Polygon polygon)

image

@sonomirco sonomirco self-assigned this May 14, 2023
@sonomirco sonomirco added bug 🐛 Issues describing a bug or pull requests fixing a bug. minor Pull requests requiring a minor version update according to semantic versioning. labels May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues describing a bug or pull requests fixing a bug. minor Pull requests requiring a minor version update according to semantic versioning.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants