Previous:POV-Ray Coordinate System Main Index Next:Translate

### Transformations

The supported transformations are `rotate`, `scale`, and `translate`. They are used to turn, size and move an object or texture. A transformation matrix may also be used to specify complex transformations directly. Groups of transformations may be merged together and stored in a transformation identifier. The syntax for transformations is as follows.

TRANSFORMATION:
`
  rotate
` <Rotate_Amt> | `
  scale
` <Scale_Amt> | `
  translate
` <Translate_Amt> | `
  transform
` TRANSFORM_IDENTIFIER | `
  matrix <
`Val00`,` Val01`,` Val02`,`
  Val10
`,` Val11`,` Val12`,`
  Val20
`,` Val21`,` Val22`,`
  Val30
`,` Val31`,` Val32`>`
TRANSFORM_DECLARATION:
`
  #declare
` IDENTIFIER `= transform{` TRANSFORMATION... `}` | `
  #local
` IDENTIFIER `= transform{` TRANSFORMATION... `}`

Previous:POV-Ray Coordinate System Main Index Next:Translate