public void MultiplyVector() { for (int i = 0; i < count; i++) { float a, b, c; a = UnityEngine.Random.Range(-10F, 10F); b = UnityEngine.Random.Range(-10F, 10F); c = UnityEngine.Random.Range(-10F, 10F); Matrix4x4 m = new Matrix4x4(); Matrix4x4d md = new Matrix4x4d(); RandomMatrix(ref m, ref md); Vector3 value = m.MultiplyVector(new Vector3(a, b, c)); Vector3d valued = md.MultiplyVector(new Vector3d(a, b, c)); Assert.True(Approximate(value, valued)); } }