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

Fix comments in point_composite_shape test #197

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/parry2d/tests/query/point_composite_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn project_local_point_and_get_feature_projects_correctly_from_outside() {
let mesh = TriMesh::new(vertices, vec![[0, 1, 2], [3, 0, 2]]);

{
let query_pt = Point2::new(-1.0, 0.0); // Inside the top-right triangle (index 1)
let query_pt = Point2::new(-1.0, 0.0); // Left from the bottom-left triangle (index 0)

let (proj, feat) = mesh.project_local_point_and_get_feature(&query_pt);

Expand All @@ -52,7 +52,7 @@ fn project_local_point_and_get_feature_projects_correctly_from_outside() {
assert_eq!(feat.unwrap_face(), correct_tri_idx);
}
{
let query_pt = Point2::new(0.5, 2.0); // Inside the top-right triangle (index 1)
let query_pt = Point2::new(0.5, 2.0); // Above the top-right triangle (index 1)

let (proj, feat) = mesh.project_local_point_and_get_feature(&query_pt);

Expand Down