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

[Test]
public void Division()
{
    var v = new Vector3D(2, 4, -1);
    const float F = 2f;
    Assert.AreEqual(new Vector3D(1, 2, -0.5f), v / F);
    var dividedByOutValue = Vector3D.Zero;
    Vector3D.Divide(ref v, F, ref dividedByOutValue);
    Assert.AreEqual(dividedByOutValue, v / F);
}
See Also