midpoint_point_point_xy

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

Compute the midpoint of two points lying in the XY-plane.

Parameters
  • a (sequence of float) – XY(Z) coordinates of the first 2D or 3D point (Z will be ignored).

  • b (sequence of float) – XY(Z) coordinates of the second 2D or 3D point (Z will be ignored).

Returns

list – XYZ coordinates of the midpoint (Z = 0.0).