Frustum.html 2.1 KB
Newer Older
1 2 3
<!DOCTYPE html>
<html lang="en">
	<head>
4
		<meta charset="utf-8" />
5 6 7 8 9 10
		<script src="../../list.js"></script>
		<script src="../../page.js"></script>
		<link type="text/css" rel="stylesheet" href="../../page.css" />
	</head>
	<body>
		<h1>[name]</h1>
M
Mr.doob 已提交
11

S
sole 已提交
12
		<div class="desc"><a href="http://en.wikipedia.org/wiki/Frustum">Frustums</a> are used to determine what is inside the camera's field of view. They help speed up the rendering process.</div>
M
Mr.doob 已提交
13 14


15
		<h2>Constructor</h2>
M
Mr.doob 已提交
16

C
cjshannon 已提交
17

G
Greg Tatum 已提交
18
		<h3>[name]([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5])</h3>
C
cjshannon 已提交
19
		<div>
G
Greg Tatum 已提交
20 21 22 23 24 25
		p0 -- [page:Plane] <br />
		p1 -- [page:Plane] <br />
		p2 -- [page:Plane] <br />
		p3 -- [page:Plane] <br />
		p4 -- [page:Plane] <br />
		p5 -- [page:Plane]
C
cjshannon 已提交
26 27
		</div>
		<div>
G
Greg Tatum 已提交
28
		Creates a frustum from the designated planes.
C
cjshannon 已提交
29
		</div>
M
Mr.doob 已提交
30 31


32
		<h2>Properties</h2>
M
Mr.doob 已提交
33

34 35
		<h3>.[page:Array planes]</h3>
		<div>
G
Greg Tatum 已提交
36
		Array of 6 [page:Plane planes].
37
		</div>
M
Mr.doob 已提交
38 39


40
		<h2>Methods</h2>
M
Mr.doob 已提交
41

42
		<h3>.setFromMatrix( [page:Matrix4 matrix] )</h3>
M
Mr.doob 已提交
43

44
		<h3>.intersectsObject( [page:Object3D object] ) [page:Boolean]</h3>
45 46 47
		<div>
		Checks whether the object is inside the Frustum.
		</div>
M
Mr.doob 已提交
48

G
Greg Tatum 已提交
49
		<h3>.clone() [page:Frustum]</h3>
C
cjshannon 已提交
50
		<div>
G
Greg Tatum 已提交
51
		Return a copy of this Frustum
C
cjshannon 已提交
52 53
		</div>

G
Greg Tatum 已提交
54
		<h3>.set([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5]) [page:Boolean]</h3>
C
cjshannon 已提交
55
		<div>
G
Greg Tatum 已提交
56 57 58 59 60 61
		p0 -- [page:Plane] <br />
		p1 -- [page:Plane] <br />
		p2 -- [page:Plane] <br />
		p3 -- [page:Plane] <br />
		p4 -- [page:Plane] <br />
		p5 -- [page:Plane]
C
cjshannon 已提交
62 63 64 65 66
		</div>
		<div>
		todo
		</div>

G
Greg Tatum 已提交
67
		<h3>.copy([page:Frustum frustum]) [page:Frustum this]</h3>
C
cjshannon 已提交
68
		<div>
G
Greg Tatum 已提交
69
		frustum -- The frustum to copy
C
cjshannon 已提交
70 71 72 73 74
		</div>
		<div>
		todo
		</div>

G
Greg Tatum 已提交
75
		<h3>.containsPoint([page:Vector3 point]) [page:Boolean]</h3>
C
cjshannon 已提交
76
		<div>
G
Greg Tatum 已提交
77
		point -- [page:Vector3] to test
C
cjshannon 已提交
78 79
		</div>
		<div>
G
Greg Tatum 已提交
80
		Checks to see if the frustum contains the point.
C
cjshannon 已提交
81 82
		</div>

G
Greg Tatum 已提交
83
		<h3>.intersectsSphere([page:Sphere sphere]) [page:Boolean]</h3>
C
cjshannon 已提交
84
		<div>
G
Greg Tatum 已提交
85
		sphere -- [page:Sphere]
C
cjshannon 已提交
86 87
		</div>
		<div>
G
Greg Tatum 已提交
88
		Check to see if the sphere intersects with the frustum.
C
cjshannon 已提交
89 90
		</div>

91
		<h2>Source</h2>
M
Mr.doob 已提交
92

93 94 95
		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html>