Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.Vector3DTests
1 unit tests call DeltaEngine.Datatypes.Vector3D.Length
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test] public void NormalizeOfAnyVector() { var v = new Vector3D(1.0f, 2.0f, -3.0f); Assert.AreNotEqual(1.0f, v.Length); v.Normalize(); Assert.AreEqual(1.0f, v.LengthSquared, MathExtensions.Epsilon); v = Vector3D.UnitX; v.Normalize(); Assert.AreEqual(1.0f, v.Length, MathExtensions.Epsilon); }
See Also