forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Polyfills.html
46 lines (38 loc) · 1.84 KB
/
Polyfills.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>Polyfills</h1>
<div class="desc">Three.js includes polyfills for the following functions and constants.</div>
<h3>[page:Number.EPSILON Number.EPSILON]</h3>
<div>
The difference between one and the smallest value greater than one that can be represented as a Number.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON MDN reference].
</div>
<h3>[page:Math.sign Math.sign]( [page:Number x] )</h3>
<div>
If the argument is a positive number, negative number, positive zero or negative zero,
the function will return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign MDN reference].
</div>
<h3>[page:Function.prototype.name Function.prototype.name]( [page:Number x] )</h3>
<div>
Returns the name of a function, or (before ES6 implementations) an empty string for anonymous functions.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name MDN reference].
</div>
<h3>[page:Object.assign Object.assign]( [page:Object target], [page:Object ...sources] )</h3>
<div>
The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object.
It will return the target object.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN reference].
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/polyfills.js src/polyfills.js]
</body>
</html>