Vector2IntExtensions

Static Class in Zigurous.Math

Declaration

public static class Vector2IntExtensions

Description

Extension methods for Vector2Int.

Extension Methods

AbsReturns the absolute value of the vector.
AverageCalculates the average of the vectors.
ClampClamps the vector to the range [min..max].
ClampedClamps the vector to the range [min..max].
SetUniformSets all components of the vector to the given value.
SetUniformlySets all components of the vector to the given value.
WrapWraps the vector to the range [min..max].
WrappedWraps the vector to the range [min..max].