Vector2Extensions
Static Class in Zigurous.Math
Declaration
public static class Vector2Extensions
Description
Extension methods for Vector2.
Extension Methods
Abs | Returns the absolute value of the vector. |
Average | Calculates the average of the vectors. |
Ceil | Rounds the vector up to the nearest whole number. |
Ceiled | Rounds the vector up to the nearest whole number. |
Clamp | Clamps the vector to the range [min..max]. |
Clamped | Clamps the vector to the range [min..max]. |
Floor | Rounds the vector down to the nearest whole number. |
Floored | Rounds the vector down to the nearest whole number. |
IsEqualTo | Checks for equality with another vector given a margin of error specified by an epsilon. |
IsZero | Checks if the vector is zero given a margin of error specified by an epsilon. |
Round | Rounds the vector to the nearest whole number. |
Rounded | Rounds the vector to the nearest whole number. |
SetUniform | Sets all components of the vector to the given value. |
SetUniformly | Sets all components of the vector to the given value. |
Wrap | Wraps the vector to the range [min..max]. |
Wrapped | Wraps the vector to the range [min..max]. |