Method code for $math.translation_mat()

[Turn on line numbering]
arg vector;
var x, y;

if (vector.length() == 2)
    return transmat_2d + [vector + [1.0]];
else
    return transmat_3d + [vector + [1.0]];

["// Various Contributors, including: Miroslav Silovic, Bruce Mitchner, Nolan, Sean R. Lynch, Technobunny", "// Created 19-Oct-1996 as a part of ColdCore, see: @help Credit"]

the Cold Dark