distance_point_point

compas.geometry.distance_point_point(a, b)[source]

Compute the distance bewteen a and b.

Parameters
  • a (sequence of float) – XYZ coordinates of point a.

  • b (sequence of float) – XYZ coordinates of point b.

Returns

float – Distance bewteen a and b.

Examples

>>> distance_point_point([0.0, 0.0, 0.0], [2.0, 0.0, 0.0])
2.0