ApplyMatrix Command
From GeoGebra Manual
Revision as of 15:49, 8 July 2013 by MagdalenaSophieF (talk | contribs)
- point M*P (with matrix M) in case M is a 2x2 matrix or
- point project(M*(x(P), y(P), 1)) where project is a projection mapping point (x,y,z) to (x/z, y/z) in case of 3x3 matrix.
- Example:Let M={{cos(\frac{π}{2} ),-sin(\frac{π}{2} )},{sin(\frac{π}{2} ),cos(\frac{π}{2} )}} be the transformation matrix and u=(2,1) a given vector (object).
ApplyMatrix[M,u]
yields the 90 degrees rotated (with mathematicaly positiv sense of rotation) vector u´=(-1,2).
- Note: This command also works for images.