File: 21%20-%20Matrix_Trans%20example.txt

package info (click to toggle)
povray 1%3A3.7.0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 146,872 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (6 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
//needs: #include "transforms.inc" 

      // Matrix_Trans(A, B, C, D) : 
      // x axis points to A, y points to B, z points to C + additional translation by D
      Matrix_Trans(<2,0.5,0>, <0,0.5,0>, <0,0.5,0.5>, <-0.5,0,0>)