Skip to main content

Geometry Package

Project description

Team 1 4900 first project

Computational Geometry package for Python.

This package grants functionality on a 2-d euclidean plane.

Functionalities include:

  • Line segment intersection: Find the intersections between a given set of line segments.
  • Closest pair of points: Given a set of points, find the two with the smallest distance from each other.
  • Convex hull: Given a set of points, find the smallest convex polyhedron/polygon containing all the points, represented as the set of points on the polygon edge.
  • Largest empty circle: Given a set of points, find a largest circle with its center inside of their convex hull and enclosing none of them.
  • graphing all of the above listed functionalities

How to Call new_math.py functions:

generate_random_list_of_points(): Returns a tuple of x,y points

Line segment intersection: show_all_line_intersections(list_of_your_lines)

Closest pair of points: find_closest_pair_of_points(list_of_points)

Convex hull: show_convex_hull(list_of_your_points)

Largest empty circle: l largest_inside_circle(list_of_your_points)

How to Call graphing.py functions - use tuples

add_points(list_of_points)

show_closest_pair(list_of_points) - shows all points, and the closest pair of points.

show_all_lines_and_intersections(list_of_lines) - Shows all intersections between lines

show_largest_inside_circle(list_of_points) - Shows largest empty circle

show_convex_hull(list_of_points) - Shows convex hull

TEAM REFERENCES:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs4900-Geometry-Package-Team-1-0.0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page