From 42bb4483b3c8d7506151ad7c418de2959453c8e8 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Fri, 22 Apr 2022 15:15:33 +0200 Subject: [PATCH] Minro tweaks to comments --- Source/Engine/Core/Math/Vector3.h | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/Source/Engine/Core/Math/Vector3.h b/Source/Engine/Core/Math/Vector3.h index 2c0ddc68d..b98e7c233 100644 --- a/Source/Engine/Core/Math/Vector3.h +++ b/Source/Engine/Core/Math/Vector3.h @@ -229,18 +229,16 @@ public: } /// - /// Calculates a vector with values being absolute values of that vector + /// Calculates a vector with values being absolute values of that vector. /// - /// Absolute vector Vector3 GetAbsolute() const { return Vector3(Math::Abs(X), Math::Abs(Y), Math::Abs(Z)); } /// - /// Calculates a vector with values being opposite to values of that vector + /// Calculates a vector with values being opposite to values of that vector. /// - /// Negative vector Vector3 GetNegative() const { return Vector3(-X, -Y, -Z); @@ -249,7 +247,6 @@ public: /// /// Calculates a normalized vector that has length equal to 1. /// - /// The normalized vector. Vector3 GetNormalized() const { const float rcp = 1.0f / Length(); @@ -257,63 +254,56 @@ public: } /// - /// Returns average arithmetic of all the components + /// Returns the average arithmetic of all the components. /// - /// Average arithmetic of all the components float AverageArithmetic() const { return (X + Y + Z) * 0.333333334f; } /// - /// Gets sum of all vector components values + /// Gets the sum of all vector components values. /// - /// Sum of X,Y and Z float SumValues() const { return X + Y + Z; } /// - /// Returns minimum value of all the components + /// Returns the minimum value of all the components. /// - /// Minimum value float MinValue() const { return Math::Min(X, Y, Z); } /// - /// Returns maximum value of all the components + /// Returns the maximum value of all the components. /// - /// Maximum value float MaxValue() const { return Math::Max(X, Y, Z); } /// - /// Returns true if vector has one or more components is not a number (NaN) + /// Returns true if vector has one or more components is not a number (NaN). /// - /// True if one or more components is not a number (NaN) bool IsNaN() const { return isnan(X) || isnan(Y) || isnan(Z); } /// - /// Returns true if vector has one or more components equal to +/- infinity + /// Returns true if vector has one or more components equal to +/- infinity. /// - /// True if one or more components equal to +/- infinity bool IsInfinity() const { return isinf(X) || isinf(Y) || isinf(Z); } /// - /// Returns true if vector has one or more components equal to +/- infinity or NaN + /// Returns true if vector has one or more components equal to +/- infinity or NaN. /// - /// True if one or more components equal to +/- infinity or NaN bool IsNanOrInfinity() const { return IsInfinity() || IsNaN();