Method NormalizeWithLength
NormalizeWithLength(float3, out float3)
Normalize and return the lenght of a vector.
Declaration
public static float NormalizeWithLength(float3 v, out float3 n)
Parameters
Type | Name | Description |
---|---|---|
float3 | v | A float3 to normalize. |
float3 | n | [out] A normalized float3. |
Returns
Type | Description |
---|---|
float | Length of v. |