public void create_w_unit() { var expected = new Vector4D(0, 0, 0, 1); var actual = Vector4D.CreateWUnit(); Assert.Equal(expected, actual); }
public void unit_w_normalizes_to_self() { var actual = Vector4D.CreateWUnit(); var expected = new Vector4D(actual); actual.Normalize(); Assert.Equal(expected, actual); }
public void unit_w_normalizes_to_self() { var vector = Vector4D.CreateWUnit(); var expected = new Vector4D(vector); var actual = vector.GetNormal(); Assert.Equal(expected, actual); }