public void TryNormalize() { Vector4F v = Vector4F.Zero; bool normalized = v.TryNormalize(); Assert.IsFalse(normalized); v = new Vector4F(1, 2, 3, 4); normalized = v.TryNormalize(); Assert.IsTrue(normalized); Assert.AreEqual(new Vector4F(1, 2, 3, 4).Normalized, v); v = new Vector4F(0, -1, 0, 0); normalized = v.TryNormalize(); Assert.IsTrue(normalized); Assert.AreEqual(new Vector4F(0, -1, 0, 0).Normalized, v); }