From c4c3263dc8ab752dd2c3b94215c5ce34b074df6d Mon Sep 17 00:00:00 2001 From: xLinka Date: Mon, 15 Jul 2024 17:22:52 +0100 Subject: [PATCH] Delete Factorial.cs --- ProjectObsidian/ProtoFlux/Math/Factorial.cs | 24 --------------------- 1 file changed, 24 deletions(-) delete mode 100644 ProjectObsidian/ProtoFlux/Math/Factorial.cs diff --git a/ProjectObsidian/ProtoFlux/Math/Factorial.cs b/ProjectObsidian/ProtoFlux/Math/Factorial.cs deleted file mode 100644 index 158cc8d..0000000 --- a/ProjectObsidian/ProtoFlux/Math/Factorial.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using Elements.Core; -using ProtoFlux.Core; -using ProtoFlux.Runtimes.Execution; -using FrooxEngine.ProtoFlux; - -namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Math -{ - [NodeCategory("Obsidian/Math")] - [NodeName("Factorial")] - public class FactorialNode : ValueFunctionNode - { - public ValueInput Input; - - protected override int Compute(FrooxEngineContext context) - { - var input = Input.Evaluate(context); - var fact = 1; - var loop = MathX.Clamp(input, 0, 16); - for (var i = 1; i <= loop; i++) fact *= i; - return fact; - } - } -}