chore: removed unsupported leftover methods from int vectors
This commit is contained in:
@@ -71,9 +71,6 @@ public readonly struct Vector2DInt(int x, int y) : IEquatable<Vector2DInt>
|
|||||||
public static Vector2DInt operator -(Vector2DInt vector) => new(0 - vector.X, 0 - vector.Y);
|
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 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;
|
||||||
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<Vector2DInt>
|
|||||||
/// <returns>The result of subtracting the second <see cref="Vector2DInt"/> from the first.</returns>
|
/// <returns>The result of subtracting the second <see cref="Vector2DInt"/> from the first.</returns>
|
||||||
public static Vector2DInt Subtract(Vector2DInt left, Vector2DInt right) => left - right;
|
public static Vector2DInt Subtract(Vector2DInt left, Vector2DInt right) => left - right;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Multiplies a <see cref="Vector2DInt"/> by a scalar value.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="vector">The <see cref="Vector2DInt"/>.</param>
|
|
||||||
/// <param name="value">The scalar value.</param>
|
|
||||||
/// <returns>The result of multiplying the <see cref="Vector2DInt"/> by the scalar value.</returns>
|
|
||||||
public static Vector2DInt Multiply(Vector2DInt vector, int value) => vector * value;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Divides a <see cref="Vector2DInt"/> by a scalar value.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="vector">The <see cref="Vector2DInt"/>.</param>
|
|
||||||
/// <param name="value">The scalar value.</param>
|
|
||||||
/// <returns>The result of dividing the <see cref="Vector2DInt"/> by the scalar value.</returns>
|
|
||||||
public static Vector2DInt Divide(Vector2DInt vector, int value) => vector / value;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates the absolute value of each component of the vector.
|
/// Calculates the absolute value of each component of the vector.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -196,15 +177,6 @@ public readonly struct Vector2DInt(int x, int y) : IEquatable<Vector2DInt>
|
|||||||
/// <returns>A <see cref="Vector2DInt"/> with each component clamped between the corresponding components of the min and max <see cref="Vector2DInt"/>s.</returns>
|
/// <returns>A <see cref="Vector2DInt"/> with each component clamped between the corresponding components of the min and max <see cref="Vector2DInt"/>s.</returns>
|
||||||
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));
|
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));
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Performs linear interpolation between two <see cref="Vector2DInt"/>s.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="from">The starting <see cref="Vector2DInt"/> (t = 0).</param>
|
|
||||||
/// <param name="to">The ending <see cref="Vector2DInt"/> (t = 1).</param>
|
|
||||||
/// <param name="t">The interpolation parameter.</param>
|
|
||||||
/// <returns>The interpolated <see cref="Vector2DInt"/>.</returns>
|
|
||||||
public static Vector2DInt Lerp(Vector2DInt from, Vector2DInt to, int t) => from + FromTo(from, to) * t;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates the cross product of two <see cref="Vector2DInt"/>s.
|
/// Calculates the cross product of two <see cref="Vector2DInt"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -265,12 +237,6 @@ public static class Vector2DIntExtensions
|
|||||||
/// <inheritdoc cref="Vector2DInt.Subtract(Vector2DInt, Vector2DInt)" />
|
/// <inheritdoc cref="Vector2DInt.Subtract(Vector2DInt, Vector2DInt)" />
|
||||||
public static Vector2DInt Subtract(this Vector2DInt vector, Vector2DInt vectorToSubtract) => Vector2DInt.Subtract(vector, vectorToSubtract);
|
public static Vector2DInt Subtract(this Vector2DInt vector, Vector2DInt vectorToSubtract) => Vector2DInt.Subtract(vector, vectorToSubtract);
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector2DInt.Multiply(Vector2DInt, int)" />
|
|
||||||
public static Vector2DInt Multiply(this Vector2DInt vector, int value) => Vector2DInt.Multiply(vector, value);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector2DInt.Divide(Vector2DInt, int)" />
|
|
||||||
public static Vector2DInt Divide(this Vector2DInt vector, int value) => Vector2DInt.Divide(vector, value);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector2DInt.Abs(Vector2DInt)" />
|
/// <inheritdoc cref="Vector2DInt.Abs(Vector2DInt)" />
|
||||||
public static Vector2DInt Abs(this Vector2DInt vector) => Vector2DInt.Abs(vector);
|
public static Vector2DInt Abs(this Vector2DInt vector) => Vector2DInt.Abs(vector);
|
||||||
|
|
||||||
@@ -292,9 +258,6 @@ public static class Vector2DIntExtensions
|
|||||||
/// <inheritdoc cref="Vector2DInt.Clamp(Vector2DInt, Vector2DInt,Vector2DInt)" />
|
/// <inheritdoc cref="Vector2DInt.Clamp(Vector2DInt, Vector2DInt,Vector2DInt)" />
|
||||||
public static Vector2DInt Clamp(this Vector2DInt vector, Vector2DInt min, Vector2DInt max) => Vector2DInt.Clamp(vector, min, max);
|
public static Vector2DInt Clamp(this Vector2DInt vector, Vector2DInt min, Vector2DInt max) => Vector2DInt.Clamp(vector, min, max);
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector2DInt.Lerp(Vector2DInt, Vector2DInt," />
|
|
||||||
public static Vector2DInt Lerp(this Vector2DInt from, Vector2DInt to, int t) => Vector2DInt.Lerp(from, to, t);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector2DInt.Cross(Vector2DInt, Vector2DInt)" />
|
/// <inheritdoc cref="Vector2DInt.Cross(Vector2DInt, Vector2DInt)" />
|
||||||
public static int Cross(this Vector2DInt left, Vector2DInt right) => Vector2DInt.Cross(left, right);
|
public static int Cross(this Vector2DInt left, Vector2DInt right) => Vector2DInt.Cross(left, right);
|
||||||
|
|
||||||
|
@@ -81,9 +81,6 @@ public readonly struct Vector3DInt(int x, int y, int z) : IEquatable<Vector3DInt
|
|||||||
public static Vector3DInt operator -(Vector3DInt vector) => new(0 - vector.X, 0 - vector.Y, 0 - vector.Z);
|
public static Vector3DInt operator -(Vector3DInt vector) => 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 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;
|
||||||
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) : IEquatable<Vector3DInt
|
|||||||
/// <returns>The result of subtracting the second <see cref="Vector3DInt"/> from the first.</returns>
|
/// <returns>The result of subtracting the second <see cref="Vector3DInt"/> from the first.</returns>
|
||||||
public static Vector3DInt Subtract(Vector3DInt left, Vector3DInt right) => left - right;
|
public static Vector3DInt Subtract(Vector3DInt left, Vector3DInt right) => left - right;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Multiplies a <see cref="Vector3DInt"/> by a scalar value.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="vector">The <see cref="Vector3DInt"/>.</param>
|
|
||||||
/// <param name="value">The scalar value.</param>
|
|
||||||
/// <returns>The result of multiplying the <see cref="Vector3DInt"/> by the scalar value.</returns>
|
|
||||||
public static Vector3DInt Multiply(Vector3DInt vector, int value) => vector * value;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Divides a <see cref="Vector3DInt"/> by a scalar value.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="vector">The <see cref="Vector3DInt"/>.</param>
|
|
||||||
/// <param name="value">The scalar value.</param>
|
|
||||||
/// <returns>The result of dividing the <see cref="Vector3DInt"/> by the scalar value.</returns>
|
|
||||||
public static Vector3DInt Divide(Vector3DInt vector, int value) => vector / value;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates the absolute value of each component of the vector.
|
/// Calculates the absolute value of each component of the vector.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -199,15 +180,6 @@ public readonly struct Vector3DInt(int x, int y, int z) : IEquatable<Vector3DInt
|
|||||||
/// <returns>A <see cref="Vector3DInt"/> with each component clamped between the corresponding components of the min and max <see cref="Vector3DInt"/>s.</returns>
|
/// <returns>A <see cref="Vector3DInt"/> with each component clamped between the corresponding components of the min and max <see cref="Vector3DInt"/>s.</returns>
|
||||||
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));
|
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));
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Performs linear interpolation between two <see cref="Vector3DInt"/>s.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="from">The starting <see cref="Vector3DInt"/> (t = 0).</param>
|
|
||||||
/// <param name="to">The ending <see cref="Vector3DInt"/> (t = 1).</param>
|
|
||||||
/// <param name="t">The interpolation parameter.</param>
|
|
||||||
/// <returns>The interpolated <see cref="Vector3DInt"/>.</returns>
|
|
||||||
public static Vector3DInt Lerp(Vector3DInt from, Vector3DInt to, int t) => from + FromTo(from, to) * t;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates the cross product of two <see cref="Vector3DInt"/>s.
|
/// Calculates the cross product of two <see cref="Vector3DInt"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -276,12 +248,6 @@ public static class Vector3DIntExtensions
|
|||||||
/// <inheritdoc cref="Vector3DInt.Subtract(Vector3DInt, Vector3DInt)" />
|
/// <inheritdoc cref="Vector3DInt.Subtract(Vector3DInt, Vector3DInt)" />
|
||||||
public static Vector3DInt Subtract(this Vector3DInt vector, Vector3DInt vectorToSubtract) => Vector3DInt.Subtract(vector, vectorToSubtract);
|
public static Vector3DInt Subtract(this Vector3DInt vector, Vector3DInt vectorToSubtract) => Vector3DInt.Subtract(vector, vectorToSubtract);
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector3DInt.Multiply(Vector3DInt, int)" />
|
|
||||||
public static Vector3DInt Multiply(this Vector3DInt vector, int value) => Vector3DInt.Multiply(vector, value);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector3DInt.Divide(Vector3DInt, int)" />
|
|
||||||
public static Vector3DInt Divide(this Vector3DInt vector, int value) => Vector3DInt.Divide(vector, value);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector3DInt.Abs(Vector3DInt)" />
|
/// <inheritdoc cref="Vector3DInt.Abs(Vector3DInt)" />
|
||||||
public static Vector3DInt Abs(this Vector3DInt vector) => Vector3DInt.Abs(vector);
|
public static Vector3DInt Abs(this Vector3DInt vector) => Vector3DInt.Abs(vector);
|
||||||
|
|
||||||
@@ -300,9 +266,6 @@ public static class Vector3DIntExtensions
|
|||||||
/// <inheritdoc cref="Vector3DInt.Clamp(Vector3DInt, Vector3DInt, Vector3DInt)" />
|
/// <inheritdoc cref="Vector3DInt.Clamp(Vector3DInt, Vector3DInt, Vector3DInt)" />
|
||||||
public static Vector3DInt Clamp(this Vector3DInt vector, Vector3DInt min, Vector3DInt max) => Vector3DInt.Clamp(vector, min, max);
|
public static Vector3DInt Clamp(this Vector3DInt vector, Vector3DInt min, Vector3DInt max) => Vector3DInt.Clamp(vector, min, max);
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector3DInt.Lerp(Vector3DInt, Vector3DInt, int)" />
|
|
||||||
public static Vector3DInt Lerp(this Vector3DInt from, Vector3DInt to, int t) => Vector3DInt.Lerp(from, to, t);
|
|
||||||
|
|
||||||
/// <inheritdoc cref="Vector3DInt.Cross(Vector3DInt, Vector3DInt)" />
|
/// <inheritdoc cref="Vector3DInt.Cross(Vector3DInt, Vector3DInt)" />
|
||||||
public static Vector3DInt Cross(this Vector3DInt left, Vector3DInt right) => Vector3DInt.Cross(left, right);
|
public static Vector3DInt Cross(this Vector3DInt left, Vector3DInt right) => Vector3DInt.Cross(left, right);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user