Click or drag to resize

MathfPosMod Method (Single, Single)

Performs a canonical Modulus operation, where the output is on the range `[0, b)`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static float PosMod(
	float a,
	float b
)

Parameters

a
Type: SystemSingle
The dividend, the primary input.
b
Type: SystemSingle
The divisor. The output is on the range `[0, b)`.

Return Value

Type: Single
The resulting output.
See Also