|
AnyCAD Rapid API 2026
Help you to create a better world!
|
32位浮点数数组类 更多...
Public 成员函数 | |
| Float32Array (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| Float32Array (ArrayBuffer buffer) | |
| Float32Array (ArrayBufferView view) | |
| Float32Array (ArrayBuffer buffer, EnumDataType dataType) | |
| Float32Array (ArrayBuffer buffer, uint byteOffset, uint byteLength, EnumDataType dataType) | |
| Vector3 | GetVec3 (uint idx) |
| 获取值 | |
| void | SetVec3 (uint idx, Vector3 val) |
| 设置值 | |
Public 成员函数 继承自 AnyCAD.Foundation.Float32TypedArray | |
| Float32TypedArray (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| Float32TypedArray (ArrayBuffer buffer) | |
| 构造函数(使用ArrayBuffer) | |
| Float32TypedArray (ArrayBufferView view) | |
| 构造函数(使用ArrayBufferView智能指针) | |
| Float32TypedArray (ArrayBuffer buffer, EnumDataType dataType) | |
| 构造函数(指定数据类型) | |
| Float32TypedArray (ArrayBuffer buffer, uint byteOffset, uint byteLength, EnumDataType dataType) | |
| 构造函数(指定数据区域) | |
| float | GetValue (uint idx) |
| 获取第idx个数据 | |
| void | SetValue (uint idx, float val) |
| 设置第idx个的数值 | |
| void | SetItem (uint idx, float val) |
| void | SetValue (uint idx, float x, float y) |
| 设置第idx及其后连续的两个值 | |
| void | SetItem2 (uint idx, float x, float y) |
| 设置第idx及其后连续的两个值(别名方法) | |
| void | SetValue (uint idx, float x, float y, float z) |
| 设置第idx及其后连续的三个值 | |
| void | SetItem3 (uint idx, float x, float y, float z) |
| 设置第idx及其后连续的三个值(别名方法) | |
| uint | GetItemCount () |
| 获取数据项的个数 | |
Public 成员函数 继承自 AnyCAD.Foundation.ArrayBufferView | |
| ArrayBufferView (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| ArrayBufferView () | |
| 默认构造函数 | |
| ArrayBufferView (ArrayBuffer buffer, uint byteOffset, uint byteLength, EnumDataType dataType) | |
| 构造函数 | |
| uint | GetByteOffset () |
| uint | GetByteLength () |
| EnumDataType | GetDataType () |
| ArrayBuffer | GetBuffer () |
| void | UpdateAddress () |
| 更新数据地址 | |
32位浮点数数组类
把ArrayBuffer当作float数组来处理,支持三维向量操作
| Vector3 AnyCAD.Foundation.Float32Array.GetVec3 | ( | uint | idx | ) |
获取值
| idx | 按照float元素计算的索引 |
| void AnyCAD.Foundation.Float32Array.SetVec3 | ( | uint | idx, |
| Vector3 | val ) |
设置值
| idx | 按照float元素计算的索引 |
| val | Vector3f类型值 |