public void TestEnumerateRow() { TestEnumeration(Rect2.Row(4, 5, 3), new Vec2(4, 5), new Vec2(5, 5), new Vec2(6, 5)); }
public void TestRowVec2Pos() { Rect2 r = Rect2.Row(new Vec2(-2, 3), 4); Assert.AreEqual(-2, r.Position.x); Assert.AreEqual(3, r.Position.y); Assert.AreEqual(4, r.Size.x); Assert.AreEqual(1, r.Size.y); }
public void TestRow() { Rect2 r = Rect2.Row(4); Assert.AreEqual(0, r.Position.x); Assert.AreEqual(0, r.Position.y); Assert.AreEqual(4, r.Size.x); Assert.AreEqual(1, r.Size.y); }