Processors.Scale

Static Method in Processors

Declaration

public static float Scale(float input, float factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

floatThe scaled input value.

Overload

Declaration

public static double Scale(double input, double factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

doubleThe scaled input value.

Overload

Declaration

public static int Scale(int input, int factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

intThe scaled input value.

Overload

Declaration

public static Vector2 Scale(Vector2 input, float factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

Vector2The 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

inputThe input value to scale.
xThe scale factor along the x-axis.
yThe scale factor along the y-axis.

Returns

Vector2The scaled input value.

Overload

Declaration

public static Vector2Int Scale(Vector2Int input, int factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

Vector2IntThe 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

inputThe input value to scale.
xThe scale factor along the x-axis.
yThe scale factor along the y-axis.

Returns

Vector2IntThe scaled input value.

Overload

Declaration

public static Vector3 Scale(Vector3 input, float factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

Vector3The 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

inputThe input value to scale.
xThe scale factor along the x-axis.
yThe scale factor along the y-axis.
zThe scale factor along the z-axis.

Returns

Vector3The scaled input value.

Overload

Declaration

public static Vector3Int Scale(Vector3Int input, int factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

Vector3IntThe 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

inputThe input value to scale.
xThe scale factor along the x-axis.
yThe scale factor along the y-axis.
zThe scale factor along the z-axis.

Returns

Vector3IntThe scaled input value.

Overload

Declaration

public static Vector4 Scale(Vector4 input, float factor)

Description

Multiplies the input by a factor.

Parameters

inputThe input value to scale.
factorThe scale factor.

Returns

Vector4The 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

inputThe input value to scale.
xThe scale factor along the x-axis.
yThe scale factor along the y-axis.
zThe scale factor along the z-axis.
wThe scale factor along the w-axis.

Returns

Vector4The scaled input value.