BREAKING CHANGE: This change moves the http module into angular2/, so its import path is now angular2/http instead of http/http. Many other modules have also been moved around inside of angular2, but the public API paths have not changed as of this commit.
23 lines
444 B
Dart
23 lines
444 B
Dart
library angular.core.facade.math;
|
|
|
|
import 'dart:core' show double, num;
|
|
import 'dart:math' as math;
|
|
|
|
const NaN = double.NAN;
|
|
|
|
class Math {
|
|
static num pow(num x, num exponent) {
|
|
return math.pow(x, exponent);
|
|
}
|
|
|
|
static num max(num a, num b) => math.max(a, b);
|
|
|
|
static num min(num a, num b) => math.min(a, b);
|
|
|
|
static num floor(num a) => a.floor();
|
|
|
|
static num ceil(num a) => a.ceil();
|
|
|
|
static num sqrt(num x) => math.sqrt(x);
|
|
}
|