Stanislav Blinov:That won't compile with dmd (at least, with 2.064.2): it expects constants as initializers for vectors. :( That's why I rolled up that toDouble2() function.
Few more changes, but this version still lacks the toDouble2: http://codepad.org/SpMprWym Bye, bearophile