using UnityEngine;
namespace Unity.VisualScripting
{
///
/// Returns the remainder of the component-wise division of two 2D vectors.
///
[UnitCategory("Math/Vector 2")]
[UnitTitle("Modulo")]
public sealed class Vector2Modulo : Modulo
{
protected override Vector2 defaultDividend => Vector2.zero;
protected override Vector2 defaultDivisor => Vector2.zero;
public override Vector2 Operation(Vector2 a, Vector2 b)
{
return new Vector2
(
a.x % b.x,
a.y % b.y
);
}
}
}