public void TestTranslate() { var offset = new SKPoint(5.6f, 7.8f); var result = _rect1.Translate(offset); AssertUtils.AreEqualSKRect(new SKRect(0.1f + 5.6f, 0.2f + 7.8f, 0.3f + 5.6f, 0.4f + 7.8f), result); }
public void TestTranslate() { var offset = new SKPoint(5.6f, 7.8f); var result = _rect1.Translate(offset); AssertUtils.AreEqualSKRect(new SKRect(0.1f + 5.6f, 0.2f + 7.8f, 0.3f + 5.6f, 0.4f + 7.8f), result); }