Processors.Invert
Static Method in Processors
Declaration
public static float Invert(float input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
float | The inverted input value. |
Overload
Declaration
public static double Invert(double input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
double | The inverted input value. |
Overload
Declaration
public static int Invert(int input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
int | The inverted input value. |
Overload
Declaration
public static Vector2 Invert(Vector2 input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
Vector2 | The inverted input value. |
Overload
Declaration
public static Vector2 Invert(Vector2 input, bool invertX, bool invertY)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
invertX | Inverts the x-axis. |
invertY | Inverts the y-axis. |
Returns
Vector2 | The inverted input value. |
Overload
Declaration
public static Vector2Int Invert(Vector2Int input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
Vector2Int | The inverted input value. |
Overload
Declaration
public static Vector2Int Invert(Vector2Int input, bool invertX, bool invertY)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
invertX | Inverts the x-axis. |
invertY | Inverts the y-axis. |
Returns
Vector2Int | The inverted input value. |
Overload
Declaration
public static Vector3 Invert(Vector3 input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
Vector3 | The inverted input value. |
Overload
Declaration
public static Vector3 Invert(Vector3 input, bool invertX, bool invertY, bool invertZ)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
invertX | Inverts the x-axis. |
invertY | Inverts the y-axis. |
invertZ | Inverts the z-axis. |
Returns
Vector3 | The inverted input value. |
Overload
Declaration
public static Vector3Int Invert(Vector3Int input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
Vector3Int | The inverted input value. |
Overload
Declaration
public static Vector3Int Invert(Vector3Int input, bool invertX, bool invertY, bool invertZ)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
invertX | Inverts the x-axis. |
invertY | Inverts the y-axis. |
invertZ | Inverts the z-axis. |
Returns
Vector3Int | The inverted input value. |
Overload
Declaration
public static Vector4 Invert(Vector4 input)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
Returns
Vector4 | The inverted input value. |
Overload
Declaration
public static Vector4 Invert(Vector4 input, bool invertX, bool invertY, bool invertZ, bool invertW)
Description
Inverts the input by multiplying by -1.
Parameters
input | The input value to invert. |
invertX | Inverts the x-axis. |
invertY | Inverts the y-axis. |
invertZ | Inverts the z-axis. |
invertW | Inverts the w-axis. |
Returns
Vector4 | The inverted input value. |