diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-06 08:42:49 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-06 08:42:49 +0100 |
commit | 9cd9e3674d8b1c326c81b7896b9254408fb19972 (patch) | |
tree | fe859bcf584060cb8fac7e0d39ba27d3affad251 /src/crepe/api | |
parent | 6b45759e570bcaafc167e74ac46c8ffe05efa66e (diff) |
Added some explanation to Vector2
Diffstat (limited to 'src/crepe/api')
-rw-r--r-- | src/crepe/api/Vector2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Vector2.h b/src/crepe/api/Vector2.h index bbcb932..bf9d124 100644 --- a/src/crepe/api/Vector2.h +++ b/src/crepe/api/Vector2.h @@ -70,7 +70,7 @@ struct Vector2 { //! Truncates the vector to a maximum length. void truncate(T max); - //! Normalizes the vector. + //! Normalizes the vector (resulting in vector with a length of 1). void normalize(); //! Returns the length of the vector. @@ -79,7 +79,7 @@ struct Vector2 { //! Returns the squared length of the vector. T length_squared() const; - //! Returns the dot product of this vector and another vector. + //! Returns the dot product (inwendig product) of this vector and another vector. T dot(const Vector2<T> & other) const; //! Returns the distance between this vector and another vector. |