← All work

[ Solo ] Deployed

LineaRecta

A web tool to calculate and visualize the shortest distance from a point to a line.

What it is

LineaRecta is a client-side web application that solves a classic geometry problem: finding the shortest distance between a point and a straight line. Built with vanilla HTML, CSS, and JavaScript, it provides an interactive experience where users can input the parameters of a line and the coordinates of a point, and see the result both numerically and visually on an HTML canvas.

Decisions

Build log

  1. Developed the HTML structure for input fields and the canvas element.
  2. Wrote the core JavaScript function to calculate the distance using the standard formula.
  3. Implemented the canvas drawing logic to plot the line and point based on user input.
  4. Added event listeners to trigger recalculation and redraw on input change.
  5. Styled the application with simple CSS for a clean, user-friendly layout.