midpoint_point_point

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

Compute the midpoint of two points.

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

  • b ([float, float, float] | Point) – XYZ coordinates of the second point.

Returns

[float, float, float] – XYZ coordinates of the midpoint.