xoa.core.interp.cell2relloc

Contents

xoa.core.interp.cell2relloc#

xoa.core.interp.cell2relloc(x1, x2, x3, x4, y1, y2, y3, y4, x, y)[source]#

Compute coordinates of point relative to a curvilinear cell

Deprecated since version Use: xoa.core.geo.relative_cell_coords() instead, which takes the vertices in counter-clockwise order (1, 2, 3, 4 = 1, 4, 3, 2 here).

Cell shape:

2 - 3
|   |
1 - 4

Example

>>> cell2relloc(0., -2., 0., 2., 0., 1., 1., 0., 0., 0.5)
(0.5, 0.5)