OLD | NEW |
1 var math = dart.defineLibrary(math, {}); | 1 var math = dart.defineLibrary(math, {}); |
2 var core = dart.import(core); | 2 var core = dart.import(core); |
3 var _js_helper = dart.lazyImport(_js_helper); | 3 var _js_helper = dart.lazyImport(_js_helper); |
4 (function(exports, core, _js_helper) { | 4 (function(exports, core, _js_helper) { |
5 'use strict'; | 5 'use strict'; |
6 class _JenkinsSmiHash extends core.Object { | 6 class _JenkinsSmiHash extends core.Object { |
7 static combine(hash, value) { | 7 static combine(hash, value) { |
8 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); | 8 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); |
9 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) <<
10); | 9 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) <<
10); |
10 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; | 10 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; |
(...skipping 13 matching lines...) Expand all Loading... |
24 let Point$ = dart.generic(function(T) { | 24 let Point$ = dart.generic(function(T) { |
25 class Point extends core.Object { | 25 class Point extends core.Object { |
26 Point(x, y) { | 26 Point(x, y) { |
27 this.x = x; | 27 this.x = x; |
28 this.y = y; | 28 this.y = y; |
29 } | 29 } |
30 toString() { | 30 toString() { |
31 return `Point(${this.x}, ${this.y})`; | 31 return `Point(${this.x}, ${this.y})`; |
32 } | 32 } |
33 ['=='](other) { | 33 ['=='](other) { |
34 if (!dart.is(other, Point)) | 34 if (!dart.is(other, Point$(dart.dynamic))) |
35 return false; | 35 return false; |
36 return dart.notNull(dart.equals(this.x, dart.dload(other, 'x'))) && dart
.notNull(dart.equals(this.y, dart.dload(other, 'y'))); | 36 return dart.notNull(dart.equals(this.x, dart.dload(other, 'x'))) && dart
.notNull(dart.equals(this.y, dart.dload(other, 'y'))); |
37 } | 37 } |
38 get hashCode() { | 38 get hashCode() { |
39 return _JenkinsSmiHash.hash2(dart.hashCode(this.x), dart.hashCode(this.y
)); | 39 return _JenkinsSmiHash.hash2(dart.hashCode(this.x), dart.hashCode(this.y
)); |
40 } | 40 } |
41 ['+'](other) { | 41 ['+'](other) { |
42 dart.as(other, Point$(T)); | 42 dart.as(other, Point$(T)); |
43 return new (Point$(T))(dart.as(this.x['+'](other.x), T), dart.as(this.y[
'+'](other.y), T)); | 43 return new (Point$(T))(dart.as(this.x['+'](other.x), T), dart.as(this.y[
'+'](other.y), T)); |
44 } | 44 } |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 exports.sin = sin; | 456 exports.sin = sin; |
457 exports.cos = cos; | 457 exports.cos = cos; |
458 exports.tan = tan; | 458 exports.tan = tan; |
459 exports.acos = acos; | 459 exports.acos = acos; |
460 exports.asin = asin; | 460 exports.asin = asin; |
461 exports.atan = atan; | 461 exports.atan = atan; |
462 exports.sqrt = sqrt; | 462 exports.sqrt = sqrt; |
463 exports.exp = exp; | 463 exports.exp = exp; |
464 exports.log = log; | 464 exports.log = log; |
465 })(math, core, _js_helper); | 465 })(math, core, _js_helper); |
OLD | NEW |