Geometric Algorithms

Implementing a Geometric Algorithm:

Scenario

You are working on a project which requires you to work with geometric algorithms. You have been asked to explore an algorithm that checks if two lines intersect.

Objectives:

After completing this lab, you will be able to:

  • Check if two line segments intersect.

Exercise 1:

In this exercise, you will check if two line segments intersect.

  • On the Jupyter Index page, click File > New Notebook > Python 3.
  • Copy the following code into the notebook
  1. To run the code, click Run.
  2. View the results.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aditya B

Aditya B

3 Followers

Passionate author, strategic investor, financial advisor