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