File: InterleavedBufferAttribute.html

package info (click to toggle)
three.js 111%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,184 kB
  • sloc: javascript: 133,174; makefile: 24; sh: 1
file content (103 lines) | stat: -rw-r--r-- 3,376 bytes parent folder | download | duplicates (2)
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
<!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>[name]</h1>

		<p class="desc">

		</p>

		<h2>构造函数</h2>
		<h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
		<p>
		</p>

		<h2>属性</h2>

		<h3>[property:InterleavedBuffer data]</h3>
		<p>
			传入构造函数的 [page:InterleavedBuffer InterleavedBuffer] 实例。
		</p>

		<h3>[property:TypedArray array]</h3>
		<p>
			[page:InterleavedBufferAttribute.data data].array 的值。
		</p>

		<h3>[property:Integer count]</h3>
		<p>
			[page:InterleavedBufferAttribute.data data].count 的值。

			所缓存的矢量的个数。如果缓存的矢量是一个三元组(例如,位置、法向量或颜色),则该值计算上述三元组的个数。
		</p>

		<h3>[property:Integer itemSize]</h3>
		<p>
			队列中每个矢量有多少个元素构成。
		</p>

		<h3>[property:Integer offset]</h3>
		<p>
			缓存队列中每个元素的起始位置的偏移量。
		</p>

		<h3>[property:Boolean normalized]</h3>
		<p>
			默认值为 *false*。
		</p>

		<h3>[property:Boolean isInterleavedBufferAttribute]</h3>
		<p>
			默认值为 *true*。
		</p>

		<h2>方法</h2>

		<h3>[method:Number getX]( [param:Integer index] ) </h3>
		<p>返回给定索引矢量的第一个元素 (X 值)。</p>

		<h3>[method:Number getY]( [param:Integer index] ) </h3>
		<p>返回给定索引矢量的第二个元素 (Y 值)。</p>

		<h3>[method:Number getZ]( [param:Integer index] ) </h3>
		<p>返回给定索引矢量的第三个元素 (Z 值)。</p>

		<h3>[method:Number getW]( [param:Integer index] ) </h3>
		<p>返回给定索引矢量的第四个元素 (W 值)。</p>

		<h3>[method:null setX]( [param:Integer index], [param:Float x] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第一个元素 (X 值)。</p>

		<h3>[method:null setY]( [param:Integer index], [param:Float y] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第二个元素 (Y 值)。</p>

		<h3>[method:null setZ]( [param:Integer index], [param:Float z] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第三个元素 (Z 值)。</p>

		<h3>[method:null setW]( [param:Integer index], [param:Float w] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第四个元素 (W 值)。</p>

		<h3>[method:null setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第一、二个元素 (X 和 Y 值)。</p>

		<h3>[method:null setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第一、二、三个元素 (X Y 和 Z 值)。</p>

		<h3>[method:null setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
		<p>通过给定参数,设置指定索引矢量的第一、二、三、四个元素 (X Y Z 和 W 值)。</p>

		<h2>源代码</h2>

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