Vector::Normalize Method ()
.NET Framework (current version)
Normalizes this vector.
Assembly: WindowsBase (in WindowsBase.dll)
The following example shows how to use this method to normalize a vector.
private Vector normalizeExample() { Vector vectorResult = new Vector(20, 30); // A normalized vector maintains its direction but // its length becomes 1. // vectorResult is approximately equal to (0.5547,0.8321). vectorResult.Normalize(); return vectorResult; }
.NET Framework
Available since 3.0
Available since 3.0
Show: