File: tools.inc

package info (click to toggle)
terraform 0.8.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,396 kB
  • ctags: 2,146
  • sloc: ansic: 23,806; sh: 2,862; pascal: 512; makefile: 440; sed: 93
file content (13 lines) | stat: -rw-r--r-- 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13

// Use this Macro if you need to convert vectors
// from Terraform to POV-Ray coordinates system
// Contributed by raymond ostertag <raymond.linux@free.fr>

#macro TF2POV ( Coord )   
  #local VecTrans = < -0.0, 0.0, -0.0 >;                    // Translation X=-0.5 and Z=-0.5
  #local VecScale = < TF_X_SCALE, TF_Y_SCALE, TF_Z_SCALE >; // Applying Scale Factors
  #local VecAxis = < 1, 1, 1 >;                             // Reverse Z axis
  (Coord + VecTrans) * VecScale * VecAxis
  #break                                                    // Return value
#end