Applying 4x4 transformation to 3-element vector with numpy

John Nagle nagle at animats.com
Wed Oct 9 01:28:44 EDT 2013


   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?

				John Nagle



More information about the Python-list mailing list