distance_point_point

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

Compute the distance bewteen a and b.

Parameters
  • a ([float, float, float] | Point) – XYZ coordinates of point a.

  • b ([float, float, float] | Point) – 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