Creates a 3-by-3 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has three entries.
A vector of 3 entries specifying the factor by which to scale in each dimension.
Optional
matrix to hold result. If not passed a new one is created.
The scaling matrix.
Creates a 3-by-3 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has three entries.