using UnityEngine;
namespace Unity.VisualScripting
{
///
/// Returns a version of a 4D vector where each component is positive.
///
[UnitCategory("Math/Vector 4")]
[UnitTitle("Absolute")]
public sealed class Vector4Absolute : Absolute
{
protected override Vector4 Operation(Vector4 input)
{
return new Vector4(Mathf.Abs(input.x), Mathf.Abs(input.y), Mathf.Abs(input.z), Mathf.Abs(input.w));
}
}
}