Skip to content

Latest commit

 

History

History

geometryBasicsDistanceBetweenPointsIn2d

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Geometry Basics: Distance between points in 2D

8 kyu link to kata
my solution

This series of katas will introduce you to basics of doing geometry with computers.

Point objects have attributes x and y.

Write a function calculating distance between Point a and Point b.

Input coordinates fit in range − 50 ⩽ x , y ⩽ 50 −50⩽x,y⩽50. Tests compare expected result and actual answer with tolerance of 1e-6.