diff --git a/Engine.Core/Primitives/Vector2DInt.cs b/Engine.Core/Primitives/Vector2DInt.cs index 2968723..31b9f37 100644 --- a/Engine.Core/Primitives/Vector2DInt.cs +++ b/Engine.Core/Primitives/Vector2DInt.cs @@ -71,9 +71,6 @@ public readonly struct Vector2DInt(int x, int y) : IEquatable public static Vector2DInt operator -(Vector2DInt vector) => new(0 - vector.X, 0 - vector.Y); public static Vector2DInt operator +(Vector2DInt left, Vector2DInt right) => new(left.X + right.X, left.Y + right.Y); public static Vector2DInt operator -(Vector2DInt left, Vector2DInt right) => new(left.X - right.X, left.Y - right.Y); - public static Vector2DInt operator *(Vector2DInt vector, int value) => new(vector.X * value, vector.Y * value); - public static Vector2DInt operator *(int value, Vector2DInt vector) => new(vector.X * value, vector.Y * value); - public static Vector2DInt operator /(Vector2DInt vector, int value) => new(vector.X / value, vector.Y / value); public static bool operator ==(Vector2DInt left, Vector2DInt right) => left.X == right.X && left.Y == right.Y; public static bool operator !=(Vector2DInt left, Vector2DInt right) => left.X != right.X || left.Y != right.Y; @@ -125,22 +122,6 @@ public readonly struct Vector2DInt(int x, int y) : IEquatable /// The result of subtracting the second from the first. public static Vector2DInt Subtract(Vector2DInt left, Vector2DInt right) => left - right; - /// - /// Multiplies a by a scalar value. - /// - /// The . - /// The scalar value. - /// The result of multiplying the by the scalar value. - public static Vector2DInt Multiply(Vector2DInt vector, int value) => vector * value; - - /// - /// Divides a by a scalar value. - /// - /// The . - /// The scalar value. - /// The result of dividing the by the scalar value. - public static Vector2DInt Divide(Vector2DInt vector, int value) => vector / value; - /// /// Calculates the absolute value of each component of the vector. /// @@ -196,15 +177,6 @@ public readonly struct Vector2DInt(int x, int y) : IEquatable /// A with each component clamped between the corresponding components of the min and max s. public static Vector2DInt Clamp(Vector2DInt vector, Vector2DInt min, Vector2DInt max) => new(Engine.Core.Math.Clamp(vector.X, min.X, max.X), Engine.Core.Math.Clamp(vector.Y, min.Y, max.Y)); - /// - /// Performs linear interpolation between two s. - /// - /// The starting (t = 0). - /// The ending (t = 1). - /// The interpolation parameter. - /// The interpolated . - public static Vector2DInt Lerp(Vector2DInt from, Vector2DInt to, int t) => from + FromTo(from, to) * t; - /// /// Calculates the cross product of two s. /// @@ -265,12 +237,6 @@ public static class Vector2DIntExtensions /// public static Vector2DInt Subtract(this Vector2DInt vector, Vector2DInt vectorToSubtract) => Vector2DInt.Subtract(vector, vectorToSubtract); - /// - public static Vector2DInt Multiply(this Vector2DInt vector, int value) => Vector2DInt.Multiply(vector, value); - - /// - public static Vector2DInt Divide(this Vector2DInt vector, int value) => Vector2DInt.Divide(vector, value); - /// public static Vector2DInt Abs(this Vector2DInt vector) => Vector2DInt.Abs(vector); @@ -292,9 +258,6 @@ public static class Vector2DIntExtensions /// public static Vector2DInt Clamp(this Vector2DInt vector, Vector2DInt min, Vector2DInt max) => Vector2DInt.Clamp(vector, min, max); - /// - public static Vector2DInt Lerp(this Vector2DInt from, Vector2DInt to, int t) => Vector2DInt.Lerp(from, to, t); - /// public static int Cross(this Vector2DInt left, Vector2DInt right) => Vector2DInt.Cross(left, right); diff --git a/Engine.Core/Primitives/Vector3DInt.cs b/Engine.Core/Primitives/Vector3DInt.cs index 5e2a427..817351f 100644 --- a/Engine.Core/Primitives/Vector3DInt.cs +++ b/Engine.Core/Primitives/Vector3DInt.cs @@ -81,9 +81,6 @@ public readonly struct Vector3DInt(int x, int y, int z) : IEquatable new(0 - vector.X, 0 - vector.Y, 0 - vector.Z); public static Vector3DInt operator +(Vector3DInt left, Vector3DInt right) => new(left.X + right.X, left.Y + right.Y, left.Z + right.Z); public static Vector3DInt operator -(Vector3DInt left, Vector3DInt right) => new(left.X - right.X, left.Y - right.Y, left.Z - right.Z); - public static Vector3DInt operator *(Vector3DInt vector, int value) => new(vector.X * value, vector.Y * value, vector.Z * value); - public static Vector3DInt operator *(int value, Vector3DInt vector) => new(vector.X * value, vector.Y * value, vector.Z * value); - public static Vector3DInt operator /(Vector3DInt vector, int value) => new(vector.X / value, vector.Y / value, vector.Z / value); public static bool operator ==(Vector3DInt left, Vector3DInt right) => left.X == right.X && left.Y == right.Y && left.Z == right.Z; public static bool operator !=(Vector3DInt left, Vector3DInt right) => left.X != right.X || left.Y != right.Y || left.Z != right.Z; @@ -135,22 +132,6 @@ public readonly struct Vector3DInt(int x, int y, int z) : IEquatableThe result of subtracting the second from the first. public static Vector3DInt Subtract(Vector3DInt left, Vector3DInt right) => left - right; - /// - /// Multiplies a by a scalar value. - /// - /// The . - /// The scalar value. - /// The result of multiplying the by the scalar value. - public static Vector3DInt Multiply(Vector3DInt vector, int value) => vector * value; - - /// - /// Divides a by a scalar value. - /// - /// The . - /// The scalar value. - /// The result of dividing the by the scalar value. - public static Vector3DInt Divide(Vector3DInt vector, int value) => vector / value; - /// /// Calculates the absolute value of each component of the vector. /// @@ -199,15 +180,6 @@ public readonly struct Vector3DInt(int x, int y, int z) : IEquatableA with each component clamped between the corresponding components of the min and max s. public static Vector3DInt Clamp(Vector3DInt vector, Vector3DInt min, Vector3DInt max) => new(Math.Clamp(vector.X, min.X, max.X), Math.Clamp(vector.Y, min.Y, max.Y), Math.Clamp(vector.Z, min.Z, max.Z)); - /// - /// Performs linear interpolation between two s. - /// - /// The starting (t = 0). - /// The ending (t = 1). - /// The interpolation parameter. - /// The interpolated . - public static Vector3DInt Lerp(Vector3DInt from, Vector3DInt to, int t) => from + FromTo(from, to) * t; - /// /// Calculates the cross product of two s. /// @@ -276,12 +248,6 @@ public static class Vector3DIntExtensions /// public static Vector3DInt Subtract(this Vector3DInt vector, Vector3DInt vectorToSubtract) => Vector3DInt.Subtract(vector, vectorToSubtract); - /// - public static Vector3DInt Multiply(this Vector3DInt vector, int value) => Vector3DInt.Multiply(vector, value); - - /// - public static Vector3DInt Divide(this Vector3DInt vector, int value) => Vector3DInt.Divide(vector, value); - /// public static Vector3DInt Abs(this Vector3DInt vector) => Vector3DInt.Abs(vector); @@ -300,9 +266,6 @@ public static class Vector3DIntExtensions /// public static Vector3DInt Clamp(this Vector3DInt vector, Vector3DInt min, Vector3DInt max) => Vector3DInt.Clamp(vector, min, max); - /// - public static Vector3DInt Lerp(this Vector3DInt from, Vector3DInt to, int t) => Vector3DInt.Lerp(from, to, t); - /// public static Vector3DInt Cross(this Vector3DInt left, Vector3DInt right) => Vector3DInt.Cross(left, right);