public void Vector1SimpleScaleTest() { var vector = new Vector1(1.0); var translate = Vector1.CreateScale(5.0); var result = translate * vector; var expected = new Vector1(5.0); Assert.Equal(expected, result); }
public void Vector1CombineTransformationsTest(double input, double output) { // converting F to C var transform = Vector1.CreateScale(5.0 / 9.0) * Vector1.CreateTranslate(-32.0); var result = transform * new Vector1(input); Assert.Equal(1.0, result[1, 0]); Assert.Equal(output, result[0, 0]); }