Table of Contents

Method b3GetLengthAndNormalize

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3GetLengthAndNormalize(out float, Vector3)

Normalizes a vector and reports its original length.

public static Vector3 b3GetLengthAndNormalize(out float length, Vector3 a)

Parameters

length float

Receives the original length.

a Vector3

The vector.

Returns

Vector3

The unit vector, or the zero vector if the input is very small.