midpoint_point_point

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

Compute the midpoint of two points.

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

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

Returns

list – XYZ coordinates of the midpoint.