Re: Applying 4x4 transformation to 3-element vector with numpy

2013-10-09 Thread Nobody
On Tue, 08 Oct 2013 23:10:16 -0700, John Nagle wrote: > I only need affine transformations. This is just moving > the coordinate system of a point, not perspective rendering. I have to do > this for a lot of points, and I'm hoping numpy has some way to do this > without generating extra garba

Re: Applying 4x4 transformation to 3-element vector with numpy

2013-10-08 Thread John Nagle
On 10/8/2013 10:36 PM, Christian Gollwitzer wrote: > Dear John, > > Am 09.10.13 07:28, schrieb John Nagle: >> This is the basic transformation of 3D graphics. Take >> a 3D point, make it 4D by adding a 1 on the end, multiply >> by a transformation matrix to get a new 4-element vector, >> disc

Re: Applying 4x4 transformation to 3-element vector with numpy

2013-10-08 Thread Christian Gollwitzer
Dear John, Am 09.10.13 07:28, schrieb John Nagle: This is the basic transformation of 3D graphics. Take a 3D point, make it 4D by adding a 1 on the end, multiply by a transformation matrix to get a new 4-element vector, discard the last element. Is there some way to do that in numpy wi

Applying 4x4 transformation to 3-element vector with numpy

2013-10-08 Thread John Nagle
This is the basic transformation of 3D graphics. Take a 3D point, make it 4D by adding a 1 on the end, multiply by a transformation matrix to get a new 4-element vector, discard the last element. Is there some way to do that in numpy without adding the extra element and then discarding it?