Click or drag to resize

MathfPosMod Method (Int32, Int32)

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 int PosMod(
	int a,
	int b
)

Parameters

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

Return Value

Type: Int32
The resulting output.
See Also