public static CreateScale ( float scale, |
||
scale | float | Value to use in the diagonal. |
matrix | Scaling matrix. | |
리턴 | void |
public static void CreateScale(float scale, out Matrix2x2 matrix)
{
matrix.M11 = scale;
matrix.M22 = scale;
matrix.M12 = 0;
matrix.M21 = 0;
}