File: matrix.txt

package info (click to toggle)
povray 1%3A3.7.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 146,780 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 (9 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
// Matrix is an object transformation that does rotation about the Y axis,
// shear along the Y axis, and translation along the Y axis
matrix
<
  0.886, 0.5, 0.5,       // the first 3 lines form a rotation matrix
  0,     1,   0,         // since it is not orthogonal, shearing occurs
  0.5,   0,  -0.886,
  0,     1.5, 0          // the last 3 values contain the translation
>