ArcObjects Library Reference (Geometry)  

IVector.Normalize Method

Normalize the vector (scale it to magnitude = 1).

[Visual Basic .NET]
Public Sub Normalize ( _
)
[C#]
public void Normalize (
);
[C++]
HRESULT Normalize(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Normalizes the Vector to a unit vector with Magnitude = 1 and the same direction as the original vector.

Remarks

Normalize is the same as Scaling the vector by 1 / Magnitude.

IVector Normalize Example

See Also

IVector Interface