https://github.com/ecuidev/uas-coding-challenge-2023
https://github.com/ecuidev/uas-coding-challenge-2023
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ecuidev/uas-coding-challenge-2023
- Owner: ECuiDev
- Created: 2023-09-18T02:08:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T02:43:04.000Z (over 2 years ago)
- Last Synced: 2025-12-30T21:03:02.290Z (5 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UAS Coding Challenge 2023
## Repository Information
Program code can be found in [main.py](https://github.com/ECuiDev/UAS-Coding-Challenge-2023/blob/main/main.py).
## Program Information
This program lets the user input coordinates of a line segment and data for either a circle or cylinder, verifies these inputs, and then returns the points of intersection (if any). It calculates intersections with a circle by using the slope-intercept form of a line and the quadratic equation. Intersections with a cylinder are done by first projecting a 3D line into 2D, performing a number of calculations, and then projecting the line back into 3D using the parametric form of a line.