CoordinateTransformerTest.frink

View or download 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]


View or download 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 19100 days, 7 hours, 45 minutes ago.