geometry.tests.test_graham_scan¶
Tests for the Graham scan convex hull algorithm.
Functions¶
|
Test with all points on the same line. |
|
Test orientation calculation. |
|
Test with all duplicate points. |
|
Test with no points. |
|
Test Euclidean distance calculation. |
|
Test with a larger set of points. |
|
Test Point comparison for sorting. |
|
Test Point equality. |
|
Test that point order doesn't affect the result. |
|
Test with a rectangle (4 points). |
Test rectangle with points on the edges (collinear with vertices). |
|
Test rectangle with points inside. |
|
|
Test with a single point. |
|
Test with a star shape where only tips are on the convex hull. |
|
Test with a triangle (3 points). |
Test triangle with points inside. |
|
|
Test with two points. |
Module Contents¶
- geometry.tests.test_graham_scan.test_collinear_points() None¶
Test with all points on the same line.
- geometry.tests.test_graham_scan.test_consecutive_orientation() None¶
Test orientation calculation.
- geometry.tests.test_graham_scan.test_duplicate_points() None¶
Test with all duplicate points.
- geometry.tests.test_graham_scan.test_empty_points() None¶
Test with no points.
- geometry.tests.test_graham_scan.test_euclidean_distance() None¶
Test Euclidean distance calculation.
- geometry.tests.test_graham_scan.test_large_hull() None¶
Test with a larger set of points.
- geometry.tests.test_graham_scan.test_point_comparison() None¶
Test Point comparison for sorting.
- geometry.tests.test_graham_scan.test_point_equality() None¶
Test Point equality.
- geometry.tests.test_graham_scan.test_random_order() None¶
Test that point order doesn’t affect the result.
- geometry.tests.test_graham_scan.test_rectangle() None¶
Test with a rectangle (4 points).
- geometry.tests.test_graham_scan.test_rectangle_with_collinear_points() None¶
Test rectangle with points on the edges (collinear with vertices).
- geometry.tests.test_graham_scan.test_rectangle_with_interior_points() None¶
Test rectangle with points inside.
- geometry.tests.test_graham_scan.test_single_point() None¶
Test with a single point.
- geometry.tests.test_graham_scan.test_star_shape() None¶
Test with a star shape where only tips are on the convex hull.
- geometry.tests.test_graham_scan.test_triangle() None¶
Test with a triangle (3 points).
- geometry.tests.test_graham_scan.test_triangle_with_interior_points() None¶
Test triangle with points inside.
- geometry.tests.test_graham_scan.test_two_points() None¶
Test with two points.