Table of Contents

Method HadamardMod

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

HadamardMod(Vector2, Vector2)

Returns the floor modulus of each component of this vector by the corresponding component of otherVector.

[Version(1, 4, 4)]
public static Vector2 HadamardMod(this Vector2 thisVector, Vector2 otherVector)

Parameters

thisVector Vector2

The dividend vector.

otherVector Vector2

The divisor vector.

Returns

Vector2

A new vector where each component is the floor modulus of the corresponding input components.

HadamardMod(Vector3, Vector3)

Returns the floor modulus of each component of this vector by the corresponding component of otherVector.

[Version(2, 0, 0)]
public static Vector3 HadamardMod(this Vector3 thisVector, Vector3 otherVector)

Parameters

thisVector Vector3

The dividend vector.

otherVector Vector3

The divisor vector.

Returns

Vector3

A new vector where each component is the floor modulus of the corresponding input components.

HadamardMod(Vector4, Vector4)

Returns the floor modulus of each component of this vector by the corresponding component of otherVector.

[Version(2, 0, 0)]
public static Vector4 HadamardMod(this Vector4 thisVector, Vector4 otherVector)

Parameters

thisVector Vector4

The dividend vector.

otherVector Vector4

The divisor vector.

Returns

Vector4

A new vector where each component is the floor modulus of the corresponding input components.