From c015cf57f0e78ac4970871c5fe87567b49e1dfd2 Mon Sep 17 00:00:00 2001 From: vbodurov Date: Sun, 22 Sep 2013 05:05:25 -0700 Subject: [PATCH] 1.6 --- GrapherApp.UI/Evaluator.cs | 11 ++++++----- GrapherApp.UI/GrapherApp.UI.csproj | 4 ++-- GrapherApp.UI/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/GrapherApp.UI/Evaluator.cs b/GrapherApp.UI/Evaluator.cs index 94986c1..2a97942 100644 --- a/GrapherApp.UI/Evaluator.cs +++ b/GrapherApp.UI/Evaluator.cs @@ -12,9 +12,9 @@ public class Evaluator class Eval { - public function ifNotNan(a : double, b : double) { return double.IsNaN(a) ? b : a; } public function ifElse(condition : boolean, ifTrue : double, ifFalse : double) { return condition ? ifTrue : ifFalse; } + public function lerp(a : double, b : double, c : double) { return (b - a) * c + a; } public function avg(a : double, b : double) { return (b - a) * 0.5 + a; } public function pow(x : double, n : double) { return System.Math.Pow(x, n); } public function abs(x : double) { return System.Math.Abs(x); } @@ -42,6 +42,7 @@ class Eval public function IfNotNan(a : double, b : double) { return ifNotNan(a, b); } public function IfElse(condition : boolean, ifTrue : double, ifFalse : double) { return ifElse(condition, ifTrue, ifFalse); } + public function Lerp(a : double, b : double, c : double) { return lerp(a, b, c); } public function Avg(a : double, b : double) { return avg(a,b); } public function Pow(x : double, n : double) { return pow(x, n); } public function Abs(x : double) { return abs(x); } @@ -69,10 +70,10 @@ class Eval public function EvaluateCode(code : String, x : double) : double { - var E : double = Math.E; - var e : double = Math.E; - var PI : double = Math.PI; - var pi : double = Math.PI; + var E : double = System.Math.E; + var e : double = System.Math.E; + var PI : double = System.Math.PI; + var pi : double = System.Math.PI; return eval(code); } }"; diff --git a/GrapherApp.UI/GrapherApp.UI.csproj b/GrapherApp.UI/GrapherApp.UI.csproj index 6a8005a..3b8ae6c 100644 --- a/GrapherApp.UI/GrapherApp.UI.csproj +++ b/GrapherApp.UI/GrapherApp.UI.csproj @@ -30,8 +30,8 @@ http://www.youvisio.com Grapher YouVisio Productions Inc. - 18 - 1.0.0.%2a + 20 + 1.6.0.%2a false true true diff --git a/GrapherApp.UI/Properties/AssemblyInfo.cs b/GrapherApp.UI/Properties/AssemblyInfo.cs index 092ed00..ed2463a 100644 --- a/GrapherApp.UI/Properties/AssemblyInfo.cs +++ b/GrapherApp.UI/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.5.*")] -[assembly: AssemblyFileVersion("1.5.*")] +[assembly: AssemblyVersion("1.6.*")] +[assembly: AssemblyFileVersion("1.6.*")]