Modulo function with the property, that the remainder of a division z / d and z < 0 is positive. For example: zmod(-2, 30) = 28.

Namespace: VVVV.Utils.VMath
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
public static int Zmod(
	int z,
	int d
)

Parameters

z
Type: System..::..Int32

[Missing <param name="z"/> documentation for "M:VVVV.Utils.VMath.VMath.Zmod(System.Int32,System.Int32)"]

d
Type: System..::..Int32

[Missing <param name="d"/> documentation for "M:VVVV.Utils.VMath.VMath.Zmod(System.Int32,System.Int32)"]

Return Value

Remainder of division z / d.

See Also