next | previous | forward | backward | up | top | index | toc | Macaulay2 website
VectorGraphics :: TransformMatrix

TransformMatrix -- Create a rotation matrix

Description

An option to rotate the coordinates of the VectorGraphics 3d object. Must be a 4x4 matrix (projective coordinates).

i1 : a=Polygon{{(-1,0),(1,0.1),(1,-0.1)},"fill"=>"red"}

o1 = a

o1 : Polygon
i2 : gList(a,a++{TransformMatrix=>rotation(2*pi/3)})

o2 = GraphicsList{cache => CacheTable{}                                                }
                  Contents => {a, Polygon{cache => CacheTable{}                      }}
                                          fill => red
                                          Points => {| -1 |, |  1 |, |  1  |}
                                                     |  0 |  | .1 |  | -.1 |
                                                     |  0 |  |  0 |  |  0  |
                                                     |  1 |  |  1 |  |  1  |
                                          TransformMatrix => | -.5     -.866025 0 0 |
                                                             | .866025 -.5      0 0 |
                                                             | 0       0        1 0 |
                                                             | 0       0        0 1 |

o2 : GraphicsList

For the programmer

The object TransformMatrix is a symbol.