jpeloquin
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
21 ms·
- 181.▲
- 182.▲
I remember a problem similar to the one you describe when using a dot product both to substitute for a fast loop and for its normal mathematical purpose, in the same operation: points = np.array([[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, - 183.▲
- 184.▲
- 185.▲
- 186.▲
- 187.▲
- 188.▲
- 189.▲
- 190.▲
- 191.▲
- 192.▲
- 193.▲
- 194.▲
Your wikipedia link reminds me that I should have listed rotation, scaling, shear, and reflection transformations. Oops. In your second link, I like the trick of storing positions as [x, y, z, 1] and directions as [vx, vy, vz, 0]. Regard - 195.▲
- 196.▲
- 197.▲
- 198.▲
- 199.▲
- 200.▲
- 201.▲
- 202.▲
- 203.▲
- 204.▲
- 205.▲
- 206.▲
- 207.▲
- 208.▲
- 209.▲
- 210.▲
More ›