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));

Questions about programming?Chat with your personal AI assistant