Vector3DTests ImplicitCastFromPoint 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 ImplicitCastFromPoint()
Examples

[Test]
public void ImplicitCastFromPoint()
{
    var p = new Vector2D(1, 2);
    var v = new Vector3D(1, 2, 3);
    Vector3D addition = p + v;
    Assert.AreEqual(new Vector3D(2, 4, 3), addition);
}
See Also