Processors.Invert

Static Method in Processors

Declaration

public static float Invert(float input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

floatThe inverted input value.

Overload

Declaration

public static double Invert(double input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

doubleThe inverted input value.

Overload

Declaration

public static int Invert(int input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

intThe inverted input value.

Overload

Declaration

public static Vector2 Invert(Vector2 input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

Vector2The inverted input value.

Overload

Declaration

public static Vector2 Invert(Vector2 input, bool invertX, bool invertY)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.
invertXInverts the x-axis.
invertYInverts the y-axis.

Returns

Vector2The inverted input value.

Overload

Declaration

public static Vector2Int Invert(Vector2Int input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

Vector2IntThe inverted input value.

Overload

Declaration

public static Vector2Int Invert(Vector2Int input, bool invertX, bool invertY)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.
invertXInverts the x-axis.
invertYInverts the y-axis.

Returns

Vector2IntThe inverted input value.

Overload

Declaration

public static Vector3 Invert(Vector3 input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

Vector3The 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

inputThe input value to invert.
invertXInverts the x-axis.
invertYInverts the y-axis.
invertZInverts the z-axis.

Returns

Vector3The inverted input value.

Overload

Declaration

public static Vector3Int Invert(Vector3Int input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

Vector3IntThe 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

inputThe input value to invert.
invertXInverts the x-axis.
invertYInverts the y-axis.
invertZInverts the z-axis.

Returns

Vector3IntThe inverted input value.

Overload

Declaration

public static Vector4 Invert(Vector4 input)

Description

Inverts the input by multiplying by -1.

Parameters

inputThe input value to invert.

Returns

Vector4The 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

inputThe input value to invert.
invertXInverts the x-axis.
invertYInverts the y-axis.
invertZInverts the z-axis.
invertWInverts the w-axis.

Returns

Vector4The inverted input value.