From 09a8e71fe381981944cd6060a875a0b2211783ed Mon Sep 17 00:00:00 2001 From: Syntriax Date: Thu, 1 Feb 2024 12:47:54 +0300 Subject: [PATCH] fix: Renamed Vector2D.Subdivide to Divide --- Engine.Core/Extensions/Vector2DExtensions.cs | 2 +- Engine.Core/Vector2D.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine.Core/Extensions/Vector2DExtensions.cs b/Engine.Core/Extensions/Vector2DExtensions.cs index 3bbd33e..0ff12f9 100644 --- a/Engine.Core/Extensions/Vector2DExtensions.cs +++ b/Engine.Core/Extensions/Vector2DExtensions.cs @@ -63,7 +63,7 @@ public static class Vector2DExtensions /// The to divide. /// The scalar value to divide with. /// The result of the division. - public static Vector2D Subdivide(this Vector2D vector, float value) => Vector2D.Subdivide(vector, value); + public static Vector2D Divide(this Vector2D vector, float value) => Vector2D.Divide(vector, value); /// /// Returns a with the absolute values of each component. diff --git a/Engine.Core/Vector2D.cs b/Engine.Core/Vector2D.cs index 29cc880..3de9a5e 100644 --- a/Engine.Core/Vector2D.cs +++ b/Engine.Core/Vector2D.cs @@ -131,7 +131,7 @@ public readonly struct Vector2D(float x, float y) /// The . /// The scalar value. /// The result of dividing the by the scalar value. - public static Vector2D Subdivide(Vector2D vector, float value) => vector / value; + public static Vector2D Divide(Vector2D vector, float value) => vector / value; /// /// Calculates the absolute value of each component of the vector.