h2e¶
- marxs.math.utils.h2e(h)[source] [edit on github]¶
Convert homogeneous coordinates to Euclidean coordinates
This functions works for points at infinity and for points in real euclidean space, but it expects that each time it is called
h
contains only the one or the other but not a mixture of both.- Parameters:
- hnp.array
Input homogeneous coordinates. This can be multidimensional, but the last dimension must be of size 4.
- Returns:
- enp.array
Euclidean coordinates. Same shape as
e
except that the last last dimension is now has 3 elements.