h2e¶
- marxs.math.utils.h2e(h)[source]¶
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
hcontains 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
eexcept that the last last dimension is now has 3 elements.