forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSphere.html
More file actions
151 lines (122 loc) · 2.51 KB
/
Copy pathSphere.html
File metadata and controls
151 lines (122 loc) · 2.51 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="../../list.js"></script>
<script src="../../page.js"></script>
<link type="text/css" rel="stylesheet" href="../../page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc">todo</div>
<h2>Constructor</h2>
<h3>[name]([page:todo center], [page:todo radius])</h3>
<div>
center -- todo <br />
radius -- todo
</div>
<div>
todo
</div>
<h2>Properties</h2>
<h3>.[page:number radius]</h3>
<div>
todo
</div>
<h3>.[page:Vector3 center]</h3>
<div>
todo
</div>
<h2>Methods</h2>
<h3>.set([page:todo center], [page:todo radius]) [page:todo]</h3>
<div>
center -- todo <br />
radius -- todo
</div>
<div>
todo
</div>
<h3>.applyMatrix4([page:todo matrix]) [page:todo]</h3>
<div>
matrix -- todo
</div>
<div>
todo
</div>
<h3>.clampPoint([page:todo point], [page:todo optionalTarget]) [page:todo]</h3>
<div>
point -- todo <br />
optionalTarget -- todo
</div>
<div>
todo
</div>
<h3>.translate([page:todo offset]) [page:todo]</h3>
<div>
offset -- todo
</div>
<div>
todo
</div>
<h3>.clone() [page:todo]</h3>
<div>
todo
</div>
<h3>.equals([page:todo sphere]) [page:todo]</h3>
<div>
sphere -- todo
</div>
<div>
todo
</div>
<h3>.setFromPoints([page:todo points], [page:Vector3 optionalCenter]) [page:todo]</h3>
<div>
points -- list of [page:Vector3 vector] positions.<br />
optionalCenter -- optional position for the sphere's center.<br />
</div>
<div>
Computes the minimum bounding sphere for *points*. If *optionalCenter* is given, it is used as the sphere's center. Otherwise, the center of the axis-aligned bounding box encompassing *points* is calculated.
</div>
<h3>.distanceToPoint([page:todo point]) [page:todo]</h3>
<div>
point -- todo
</div>
<div>
todo
</div>
<h3>.getBoundingBox([page:todo optionalTarget]) [page:todo]</h3>
<div>
optionalTarget -- todo
</div>
<div>
todo
</div>
<h3>.containsPoint([page:todo point]) [page:todo]</h3>
<div>
point -- todo
</div>
<div>
todo
</div>
<h3>.copy([page:todo sphere]) [page:todo]</h3>
<div>
sphere -- todo
</div>
<div>
todo
</div>
<h3>.intersectsSphere([page:todo sphere]) [page:todo]</h3>
<div>
sphere -- todo
</div>
<div>
todo
</div>
<h3>.empty() [page:todo]</h3>
<div>
todo
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>