This document is archived and information here might be outdated.  Recommended version.


IVector.Normalize Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IV > IVector Interface > IVector.Normalize Method
ArcGIS Developer Help

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