Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: charted/lib/core/utils/math.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « charted/lib/core/utils/lists.dart ('k') | charted/lib/core/utils/namespace.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: charted/lib/core/utils/math.dart
diff --git a/charted/lib/core/utils/math.dart b/charted/lib/core/utils/math.dart
deleted file mode 100644
index 7b8206c69630281ad819c4cf76cb4908dbfc0541..0000000000000000000000000000000000000000
--- a/charted/lib/core/utils/math.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file or at
-// https://developers.google.com/open-source/licenses/bsd
-//
-
-part of charted.core.utils;
-
-/// Mathematical constant PI
-const double PI = math.PI;
-
-/// PI * 0.5
-const double HALF_PI = PI / 2.0;
-
-/// PI * 2
-/// Ratio constant of a circle's circumference to radius
-const double TAU = PI * 2.0;
-
-/// An arbitrary small possible number
-const double EPSILON = 1e-6;
-
-/// EPSILON * EPSILON, where EPSILON is a arbitrarily small positive number
-const double EPSILON_SQUARE = EPSILON * EPSILON;
-
-/// Maximum value of Dart SMI.
-/// On 32 bit machines, numbers above this have an additional lookup overhead.
-const int SMALL_INT_MAX = (1 << 30) - 1;
-
-/// Minimum value of Dart SMI.
-/// On 32 bit machines, numbers below this have an additional lookup overhead.
-const int SMALL_INT_MIN = -1 * (1 << 30);
-
-/// Hyperbolic cosine.
-num cosh(num x) => ((x = math.exp(x)) + 1 / x) / 2;
-
-/// Hyperbolic sine.
-num sinh(num x) => ((x = math.exp(x)) - 1 / x) / 2;
-
-/// Hyperbolic tangent.
-num tanh(num x) => ((x = math.exp(2 * x)) - 1) / (x + 1);
-
-/// Converts [degrees] to radians.
-num toRadians(num degrees) => degrees * math.PI / 180.0;
-
-/// Converts [radians] to degrees.
-num toDegrees(num radians) => radians * 180.0 / math.PI;
« no previous file with comments | « charted/lib/core/utils/lists.dart ('k') | charted/lib/core/utils/namespace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698