egttools.plotting.simplex2d.barycentric_to_xy_coordinates

barycentric_to_xy_coordinates(point_barycentric, corners)[source]

Transforms barycentric into cartesian coordinates.

Parameters
  • point_barycentric (numpy.ndarray) – An array containing the 3 barycentric coordinates.

  • corners (numpy.ndarray) – An matrix containing the cartesian coordinates of the corners of the triangle that represents the 2-simplex.

Returns

An array containing the cartesian coordinates of the input point.

Return type

numpy.ndarray