Vector2DTests Multiplication 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 Multiplication()
Examples

[Test]
public void Multiplication()
{
    var v = new Vector2D(2, 4);
    const float F = 1.5f;
    var s = new Size(F);
    Assert.AreEqual(new Vector2D(3, 6), v * F);
    Assert.AreEqual(new Vector2D(3, 6), v * s);
}
See Also