CoordinateTransformerTest.frink

Download or view CoordinateTransformerTest.frink in plain text format


/** This program tests a single coordinate transformer constructor which was very
    hard to derive and get right for all signs. */


c = callJava["frink.graphics.CoordinateTransformer3DFloat","makeVerticalToLine",[-1,1,1,-2,2,2]]
//println[c.toString[]]
p = c.transform[0,0,0,undef]
println["(0,0,0) transformed to        " + p.x + ", " + p.y + ", " + p.z]
p = c.transform[0,0,sqrt[3],undef]
println["(0,0, sqrt[3]) transformed to " + p.x + ", " + p.y + ", " + p.z]


Download or view CoordinateTransformerTest.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 19355 days, 23 hours, 44 minutes ago.