e2h¶
- marxs.math.utils.e2h(e, w)[source]¶
Convert Euclidean coordinates to homogeneous coordinates
Parameters¶
- enp.array
Input Euclidean coordinates. This can be multidimensional, but the last dimension must be of size 3.
- wfloat
0for directions (points at infinity)1for positions (points in Euclidean space)
Returns¶
- hnp.array
Homogeneous coordinates. Same shape as
eexcept that the last dimension is now has 4 elements.