Table of Contents

Method Normalize

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Normalize()

Returns a normalized (unit length) copy of this vector.

public GeoVector3 Normalize()

Returns

GeoVector3

The unit vector pointing in the same direction.

Remarks

A zero-length vector has no direction, so there is no answer to return. Use TryGetNormal(out GeoVector3) where a degenerate input is expected and should be handled rather than thrown on.

Exceptions

InvalidOperationException

Thrown when the vector has zero length.