()
| 1187 | |
| 1188 | |
| 1189 | def _test_proj_make_M(): |
| 1190 | # eye point |
| 1191 | E = np.array([1000, -1000, 2000]) |
| 1192 | R = np.array([100, 100, 100]) |
| 1193 | V = np.array([0, 0, 1]) |
| 1194 | roll = 0 |
| 1195 | u, v, w = proj3d._view_axes(E, R, V, roll) |
| 1196 | viewM = proj3d._view_transformation_uvw(u, v, w, E) |
| 1197 | perspM = proj3d._persp_transformation(100, -100, 1) |
| 1198 | M = np.dot(perspM, viewM) |
| 1199 | return M |
| 1200 | |
| 1201 | |
| 1202 | def test_proj_transform(): |
no test coverage detected
searching dependent graphs…