public void CreateScale() { Matrix22F i = Matrix22F.CreateScale(1.0f); Assert.AreEqual(Matrix22F.Identity, i); Vector2F v = Vector2F.One; Matrix22F m = Matrix22F.CreateScale(2.0f); Assert.AreEqual(2 * v, m * v); m = Matrix22F.CreateScale(-1.0f, 1.5f); Assert.AreEqual(new Vector2F(-1.0f, 1.5f), m * v); Vector2F scale = new Vector2F(-2.0f, -3.0f); m = Matrix22F.CreateScale(scale); v = new Vector2F(1.0f, 2.0f); Assert.AreEqual(v * scale, m * v); }