Processors.Scale
Static Method in Processors
Declaration
public static float Scale(float input, float factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
float | The scaled input value. |
Overload
Declaration
public static double Scale(double input, double factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
double | The scaled input value. |
Overload
Declaration
public static int Scale(int input, int factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
int | The scaled input value. |
Overload
Declaration
public static Vector2 Scale(Vector2 input, float factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
Vector2 | The scaled input value. |
Overload
Declaration
public static Vector2 Scale(Vector2 input, float x, float y)
Description
Multiplies the input by a factor in each axis.
Parameters
input | The input value to scale. |
x | The scale factor along the x-axis. |
y | The scale factor along the y-axis. |
Returns
Vector2 | The scaled input value. |
Overload
Declaration
public static Vector2Int Scale(Vector2Int input, int factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
Vector2Int | The scaled input value. |
Overload
Declaration
public static Vector2Int Scale(Vector2Int input, int x, int y)
Description
Multiplies the input by a factor in each axis.
Parameters
input | The input value to scale. |
x | The scale factor along the x-axis. |
y | The scale factor along the y-axis. |
Returns
Vector2Int | The scaled input value. |
Overload
Declaration
public static Vector3 Scale(Vector3 input, float factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
Vector3 | The scaled input value. |
Overload
Declaration
public static Vector3 Scale(Vector3 input, float x, float y, float z)
Description
Multiplies the input by a factor in each axis.
Parameters
input | The input value to scale. |
x | The scale factor along the x-axis. |
y | The scale factor along the y-axis. |
z | The scale factor along the z-axis. |
Returns
Vector3 | The scaled input value. |
Overload
Declaration
public static Vector3Int Scale(Vector3Int input, int factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
Vector3Int | The scaled input value. |
Overload
Declaration
public static Vector3Int Scale(Vector3Int input, int x, int y, int z)
Description
Multiplies the input by a factor in each axis.
Parameters
input | The input value to scale. |
x | The scale factor along the x-axis. |
y | The scale factor along the y-axis. |
z | The scale factor along the z-axis. |
Returns
Vector3Int | The scaled input value. |
Overload
Declaration
public static Vector4 Scale(Vector4 input, float factor)
Description
Multiplies the input by a factor.
Parameters
input | The input value to scale. |
factor | The scale factor. |
Returns
Vector4 | The scaled input value. |
Overload
Declaration
public static Vector4 Scale(Vector4 input, float x, float y, float z, float w)
Description
Multiplies the input by a factor in each axis.
Parameters
input | The input value to scale. |
x | The scale factor along the x-axis. |
y | The scale factor along the y-axis. |
z | The scale factor along the z-axis. |
w | The scale factor along the w-axis. |
Returns
Vector4 | The scaled input value. |