Я в основном пользователь R, но здесь говорится: имена переменных в вызове Java:
dat <- scan (text="double xx, double yx, double zx, double tx, double xy, double yy, double zy, double ty, double xz, double yz, double zz, double tz", what="")
dat <- dat[dat != "double"]
matrix(dat,4)
[,1] [,2] [,3]
[1,] "xx," "xy," "xz,"
[2,] "yx," "yy," "yz,"
[3,] "zx," "zy," "zz,"
[4,] "tx," "ty," "tz"
На этой странице показано, как можно закодировать аффинное преобразование, с той лишь разницей, чтоматрица 4x3 транспонируется: https://o7planning.org/en/11157/javafx-transformations-tutorial
t( matrix(dat,4) )
[,1] [,2] [,3] [,4]
[1,] "xx," "yx," "zx," "tx,"
[2,] "xy," "yy," "zy," "ty,"
[3,] "xz," "yz," "zz," "tz"
Таким образом, матрица будет применена к вектору c (x, y, z, 1), чтобы получить результат: