public static Vector3[] scale(Vector3[] to_scale, float x, float y, float z) { Vector3[] scaled = new Vector3[to_scale.Length]; MyMatrix4 mat = MyMatrix4.getScaleMatrix(x, y, z); for (int i = 0; i < to_scale.Length; i++) { scaled[i] = mat * to_scale[i]; } return(scaled); }
public static Vector3 scale(Vector3 to_scale, float x, float y, float z) { MyMatrix4 mat = MyMatrix4.getScaleMatrix(x, y, z); return(mat * to_scale); }