If two points lie on the \(x\)-axis or \(y\)-axis, then the distance between them is equal to the difference between the \(x\)-coordinates or \(y\)-coordinates respectively.
To find the distance between two points we can apply the below formula.
The distance between the given two A(x1,y1) and B(x2,y2), points is:
Distance from Origin:
To find the distance of a point A(x1,y1) from the Origin \(O\) \((0,0))\ we can use the formula, OA=x12+y12.