Create a Matrix4
instance for 'Affine'
transform
Arguments
- m
a matrix or a vector to be converted to the
Matrix4
instance;m
must be one of the followings: for matrices, the dimension must be4x4
,3x4
(the last row will be0 0 0 1
), or3x3
(linear transform); for vectors, the length must be16
,12
(will append0 0 0 1
internally),3
(translation), or1
(scale).