Skip to content

Vector2IntExtensions

Namespace: SideXP.Core

public static class Vector2IntExtensions

Extension functions for Vector2Int values.

Methods

Min(Vector2Int, int)

public static Vector2Int Min(Vector2Int vector, int min)

Returns a new Vector2Int with its values superior or equal to the given minimum value.

Parameters

  • vector: The input vector to compute.
  • min: The minimum value of the given vector.

Returns

Returns the computed vector.

Max(Vector2Int, int)

public static Vector2Int Max(Vector2Int vector, int max)

Returns a new Vector2Int instance with its values inferior or equal to the given maximum value.

Parameters

  • max: The maximum value of the given vector.