diff --git a/Source/Engine/Core/Math/Vector2.cs b/Source/Engine/Core/Math/Vector2.cs index efbda7a42..c0b84ca04 100644 --- a/Source/Engine/Core/Math/Vector2.cs +++ b/Source/Engine/Core/Math/Vector2.cs @@ -832,7 +832,7 @@ namespace FlaxEngine value.Normalize(); return value; } - + /// /// Makes sure that Length of the output vector is always below max and above 0. /// @@ -840,8 +840,9 @@ namespace FlaxEngine /// Max Length public static Vector2 ClampLength(Vector2 vector, float max) { - return ClampLength(vector, 0, max); + return ClampLength(vector, 0, max); } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -853,6 +854,7 @@ namespace FlaxEngine ClampLength(ref vector, min, max, out Vector2 retVect); return retVect; } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -864,7 +866,7 @@ namespace FlaxEngine { retVect.X = vector.X; retVect.Y = vector.Y; - + float lenSq = retVect.LengthSquared; if (lenSq > max * max) { @@ -879,6 +881,7 @@ namespace FlaxEngine retVect.Y = retVect.Y * scaleFactor; } } + /// /// Returns the vector with components rounded to the nearest integer. /// diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index b871c0642..2674b30e6 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -991,7 +991,7 @@ namespace FlaxEngine value.Normalize(); return value; } - + /// /// Makes sure that Length of the output vector is always below max and above 0. /// @@ -999,8 +999,9 @@ namespace FlaxEngine /// Max Length public static Vector3 ClampLength(Vector3 vector, float max) { - return ClampLength(vector, 0, max); + return ClampLength(vector, 0, max); } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -1012,6 +1013,7 @@ namespace FlaxEngine ClampLength(ref vector, min, max, out Vector3 retVect); return retVect; } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -1024,7 +1026,7 @@ namespace FlaxEngine retVect.X = vector.X; retVect.Y = vector.Y; retVect.Z = vector.Z; - + float lenSq = retVect.LengthSquared; if (lenSq > max * max) { @@ -1041,6 +1043,7 @@ namespace FlaxEngine retVect.Z = retVect.Z * scaleFactor; } } + /// /// Performs a linear interpolation between two vectors. /// diff --git a/Source/Engine/Core/Math/Vector4.cs b/Source/Engine/Core/Math/Vector4.cs index d01214de3..99430072d 100644 --- a/Source/Engine/Core/Math/Vector4.cs +++ b/Source/Engine/Core/Math/Vector4.cs @@ -799,8 +799,9 @@ namespace FlaxEngine /// Max Length public static Vector4 ClampLength(Vector4 vector, float max) { - return ClampLength(vector, 0, max); + return ClampLength(vector, 0, max); } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -812,6 +813,7 @@ namespace FlaxEngine ClampLength(ref vector, min, max, out Vector4 retVect); return retVect; } + /// /// Makes sure that Length of the output vector is always below max and above min. /// @@ -825,7 +827,7 @@ namespace FlaxEngine retVect.Y = vector.Y; retVect.Z = vector.Z; retVect.W = vector.W; - + float lenSq = retVect.LengthSquared; if (lenSq > max * max) { @@ -844,6 +846,7 @@ namespace FlaxEngine retVect.W = retVect.W * scaleFactor; } } + /// /// Performs a linear interpolation between two vectors. ///