Generation

generate functionSun, 13 Nov 2022

distance formula of 2 vectors

double dist(x1, y1, x2, y2) return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));

Want to kickstart your project?Use the new AI Studio to create your code