e2h¶
- marxs.math.utils.e2h(e, w)[source] [edit on github]¶
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
0
for directions (points at infinity)1
for positions (points in Euclidean space)
- Returns:
- hnp.array
Homogeneous coordinates. Same shape as
e
except that the last dimension is now has 4 elements.