using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Unity.VisualScripting
{
///
/// Returns the minimum between two or more scalars.
///
[UnitCategory("Math/Scalar")]
[UnitTitle("Minimum")]
public sealed class ScalarMinimum : Minimum
{
public override float Operation(float a, float b)
{
return Mathf.Min(a, b);
}
public override float Operation(IEnumerable values)
{
return values.Min();
}
}
}