Class for general vector operations (multiplication, division, and absolute value) for all vector types.
More...
|
static Vector3 | Scale (this Vector3 a, Vector3 b) |
| Multiplies two Vector3 instances element-wise and returns the result.
|
|
static Vector3Int | Scale (this Vector3Int a, Vector3Int b) |
| Multiplies two Vector3Int instances element-wise and returns the result.
|
|
static Vector2 | Scale (this Vector2 a, Vector2 b) |
| Multiplies two Vector2 instances element-wise and returns the result.
|
|
static Vector2Int | Scale (this Vector2Int a, Vector2Int b) |
| Multiplies two Vector2Int instances element-wise and returns the result.
|
|
static Vector3 | ScaleX (this Vector3 vec, float factor) |
| Scales only X component of the given vector.
|
|
static Vector3 | ScaleY (this Vector3 vec, float factor) |
| Scales only Y component of the given vector.
|
|
static Vector3 | ScaleZ (this Vector3 vec, float factor) |
| Scales only Z component of the given vector.
|
|
static Vector2 | ScaleX (this Vector2 vec, float factor) |
| Scales only X component of the given vector.
|
|
static Vector2 | ScaleY (this Vector2 vec, float factor) |
| Scales only Y component of the given vector.
|
|
static Vector3 | Divide (this Vector3 a, Vector3 b) |
| Divides two Vector3 instances element-wise and returns the result.
|
|
static Vector3Int | Divide (this Vector3Int a, Vector3Int b) |
| Divides two Vector3Int instances element-wise and returns the result.
|
|
static Vector2 | Divide (this Vector2 a, Vector2 b) |
| Divides two Vector2 instances element-wise and returns the result.
|
|
static Vector2Int | Divide (this Vector2Int a, Vector2Int b) |
| Divides two Vector2Int instances element-wise and returns the result.
|
|
static Vector3 | Abs (this Vector3 vector) |
| Returns a new Vector3 with the absolute values of the components.
|
|
static Vector3Int | Abs (this Vector3Int vector) |
| Returns a new Vector3Int with the absolute values of the components.
|
|
static Vector2 | Abs (this Vector2 vector) |
| Returns a new Vector2 with the absolute values of the components.
|
|
static Vector2Int | Abs (this Vector2Int vector) |
| Returns a new Vector2Int with the absolute values of the components.
|
|
static Vector3 | Pow (this Vector3 vector, float exponent) |
| Raises each component to the specified exponent.
|
|
static Vector2 | Pow (this Vector2 vector, float exponent) |
| Raises each component to the specified exponent.
|
|
static Vector3 | Sqrt (this Vector3 vector) |
| Takes square root of each component.
|
|
static Vector2 | Sqrt (this Vector2 vector) |
| Takes square root of each component.
|
|
static Vector2 | Average (this IEnumerable< Vector2 > vectors) |
| Returns an average point of the given list of vectors.
|
|
static Vector3 | Average (this IEnumerable< Vector3 > vectors) |
| Returns an average point of the given list of vectors.
|
|
Class for general vector operations (multiplication, division, and absolute value) for all vector types.