public void create_x_unit() { var expected = new Vector4D(1, 0, 0, 0); var actual = Vector4D.CreateXUnit(); Assert.Equal(expected, actual); }
public void unit_x_normalizes_to_self() { var vector = Vector4D.CreateXUnit(); var expected = new Vector4D(vector); var actual = vector.GetNormal(); Assert.Equal(expected, actual); }
public void unit_x_normalizes_to_self() { var actual = Vector4D.CreateXUnit(); var expected = new Vector4D(actual); actual.Normalize(); Assert.Equal(expected, actual); }