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 (numpy.ndarray[3,m,n]) – Expects a matrix in which the first dimension corresponds to the vector of 3-demensional barycentric coordinates.
corners (numpy.ndarray[3,]) – The corners of the triangle
- Returns
The tensor of cartesian coordinates.
- Return type
numpy.ndarray[2,m,n]