AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
Float32TypedArray类 参考
类 Float32TypedArray 继承关系图:
ArrayBufferView Float32Array

Public 成员函数

 Float32TypedArray (ArrayBuffer buffer)
 
 Float32TypedArray (ArrayBufferView view)
 
 Float32TypedArray (ArrayBuffer buffer, EnumDataType dataType)
 
 Float32TypedArray (ArrayBuffer buffer, long byteOffset, long byteLength, EnumDataType dataType)
 
float GetValue (long idx)
 
void SetValue (long idx, float val)
 
void SetValue (long idx, float x, float y)
 
void SetValue (long idx, float x, float y, float z)
 
long GetItemCount ()
 
- Public 成员函数 继承自 ArrayBufferView
 ArrayBufferView (ArrayBuffer buffer, long byteOffset, long byteLength, EnumDataType dataType)
 
long GetByteOffset ()
 
long GetByteLength ()
 
EnumDataType GetDataType ()
 
ArrayBuffer GetBuffer ()
 
void UpdateAddress ()
 

详细描述

<> ArrayBufferView辅助类模板

构造及析构函数说明

◆ Float32TypedArray() [1/4]

Float32TypedArray.Float32TypedArray ( ArrayBuffer buffer)

使用ArrayBuffer来构造

参数
bufferArrayBuffer

◆ Float32TypedArray() [2/4]

Float32TypedArray.Float32TypedArray ( ArrayBufferView view)

使用ArrayBufferView来构造

参数
viewArrayBufferView

◆ Float32TypedArray() [3/4]

Float32TypedArray.Float32TypedArray ( ArrayBuffer buffer,
EnumDataType dataType )

使用ArrayBuffer来构造

参数
bufferArrayBuffer
dataType指定数据类型

◆ Float32TypedArray() [4/4]

Float32TypedArray.Float32TypedArray ( ArrayBuffer buffer,
long byteOffset,
long byteLength,
EnumDataType dataType )

使用ArrayBuffer来构造,取指定区域的数据

参数
bufferArrayBuffer
byteOffset距原始数据的偏移
byteLength偏移的长度
dataType数据类型

成员函数说明

◆ GetItemCount()

long Float32TypedArray.GetItemCount ( )

获取数据项的个数

返回
个数

◆ GetValue()

float Float32TypedArray.GetValue ( long idx)

获取第idx个数据

参数
idx索引
返回

◆ SetValue() [1/3]

void Float32TypedArray.SetValue ( long idx,
float val )

设置第idx个的数值

参数
idx索引
val

◆ SetValue() [2/3]

void Float32TypedArray.SetValue ( long idx,
float x,
float y )

设置第idx和第idx+1的值

参数
idx索引
xidx的值
yidx+1的值

◆ SetValue() [3/3]

void Float32TypedArray.SetValue ( long idx,
float x,
float y,
float z )

设置第idx及其后连选的三个值

参数
idx索引
xidx的值
yidx+1的值
zidx+2的值