Vector2DTests PointInsideBordersHasNoReflection Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void PointInsideBordersHasNoReflection()
Examples

[Test]
public void PointInsideBordersHasNoReflection()
{
    var direction = Vector2D.One;
    var areaInsideBorders = new Rectangle(Vector2D.Half, Size.One * 2);
    var borders = Rectangle.One;
    direction.ReflectIfHittingBorder(areaInsideBorders, borders);
    Assert.AreEqual(Vector2D.One, direction);
}
See Also