public static Vector3[] translate(Vector3[] to_translate, float x, float y, float z) { Vector3[] translated = new Vector3[to_translate.Length]; MyMatrix4 mat = MyMatrix4.getTranslationMatrix(x, y, z); for (int i = 0; i < to_translate.Length; i++) { translated[i] = mat * to_translate[i]; } return(translated); }
public static Vector3 translate(Vector3 to_translate, float x, float y, float z) { MyMatrix4 mat = MyMatrix4.getTranslationMatrix(x, y, z); return(mat * to_translate); }