Skip to content

Vector3IntExtensions

Namespace: SideXP.Core

public static class Vector3IntExtensions

Extension functions for Vector3Int values.

Methods

Min(Vector3Int, int)

public static Vector3Int Min(Vector3Int vector, int min)

Returns a new Vector3Int 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(Vector3Int, int)

public static Vector3Int Max(Vector3Int vector, int max)

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

Parameters

  • max: The maximum value of the given vector.