egttools.plotting.simplified.vectorized_barycentric_to_xy_coordinates

vectorized_barycentric_to_xy_coordinates(barycentric_coordinates, corners)[source]

Transform a tensor of barycentric coordinates to cartesian coordinates.

Parameters:
  • barycentric_coordinates (ndarray) – Expects a matrix in which the first dimension corresponds to the vector of 3-demensional barycentric coordinates.

  • corners (ndarray) – The corners of the triangle

Returns:

The tensor of cartesian coordinates.

Return type:

ndarray