FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
three.js/src/utils.js at dev · codeTCbin25/three.js · GitHub
codeTCbin25
/
three.js
Public
forked from
mrdoob/three.js
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
three.js
/
src
/
utils.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (20 loc) · 517 Bytes
Breadcrumbs
three.js
/
src
/
utils.js
Copy path
File metadata and controls
37 lines (20 loc) · 517 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/**
*
@author
mrdoob / http://mrdoob.com/
*/
function
arrayMin
(
array
)
{
if
(
array
.
length
===
0
)
return
Infinity
;
var
min
=
array
[
0
]
;
for
(
var
i
=
1
,
l
=
array
.
length
;
i
<
l
;
++
i
)
{
if
(
array
[
i
]
<
min
)
min
=
array
[
i
]
;
}
return
min
;
}
function
arrayMax
(
array
)
{
if
(
array
.
length
===
0
)
return
-
Infinity
;
var
max
=
array
[
0
]
;
for
(
var
i
=
1
,
l
=
array
.
length
;
i
<
l
;
++
i
)
{
if
(
array
[
i
]
>
max
)
max
=
array
[
i
]
;
}
return
max
;
}
export
{
arrayMin
,
arrayMax
}
;
Back
|
FazBrowse Home
|
New Git URL