Files
BlockSpace-v1.5.0b/Assets/Scripts/Assembly-CSharp/CosineBehavior.cs
T
2026-06-01 17:19:55 +02:00

13 lines
305 B
C#

using System;
using UnityEngine;
[DisallowMultipleComponent]
public sealed class CosineBehavior : GuardedValueNodeBehavior
{
protected override void RecomputeCore()
{
double d = GetInputNumber("Degrees") * (Math.PI / 180.0);
SetOutputValueIfChanged("Output", BSValue.FromNumber(Math.Cos(d)));
}
}