This project focuses on the simulation and visualization of how lasers behave when reflected inside an elliptical shape.
Experience the live version of the project here: white-cell.laurikjk.com
- Ellipse Equation Input: Users can input the specific parameters of the ellipse equation, tailoring the simulation to different elliptical shapes.
- Initial Laser Beam Input: Users can draw the initial laser beam, setting the entry point and direction of the laser.
- Laser Entry Precision: Currently, the laser entry point is fixed at 0.2 units wide on the x-axis. Future updates could include adjustable entry sizes for greater flexibility.
- User Interface Enhancement: While functional, the input form is a bit crude. Future versions could see an enhanced UI for an improved user experience.
- Internal Quality: There are a few areas that could use the DRY principle and there are no tests due to time constraints.
For more information on the principles and mathematics behind the project, refer to these resources:
- Project Euler Problem 144: An exploration into the mathematical problem that inspired this project.
- Wikipedia: Multipass Spectroscopic Absorption Cells: Understanding the principles of light reflection and absorption in controlled environments.
To set up a local development environment:
- Clone the repository.
- Install the dependencies:
npm install
- Run the development server:
npm run dev
- Access the application at http://localhost:3000.