Vertex
Vertex
Overview
Vertex 是一个类在Aspose.3D FOSS for Typescript中.
Vertex.constructor creates a vertex using an ArrayBuffer, offset, field declarations, and vertex size.
本类提供11种方法,用于在TypeScript程序中与Vertex对象工作. 有的方法包括: compare, compareTo, constructor, readDouble, readFVector2, readFVector3, readFVector4, readFloat, readVector2, readVector3, readVector4. 在安装Aspose.3D FOSS for Typescript 包后,所有公众成员都可以访问任何TypeScript应用程序.
Description
Vertex 是Aspose.3D FOSS库中一个类,该类可用于 TypeScript 进行编程使用.
核心功能包括:使用数组缓冲器,偏移,字段声明和顶点大小创建一个顶部.这些操作使开发人员能够直接将顶端功能集成到 TypeScript 应用程序中.
实例通过单个构造器创建,该构成者将对象初始化为默认值.
Methods
| Signature | Description |
|---|---|
constructor(data: ArrayBuffer, offset: number, declaration: VertexField[], vertexSize: number) | 使用 ArrayBuffer,偏差值,字段声明和顶点大小创建一个顶部 |
compare(other: Vertex) → number | 返回这个顶点与另一个顶峰之间的数量排序比较结果. |
compareTo(other: Vertex) → number | 返回一个数字值,表示这个顶点与另一个顶峰的顺序. |
readVector4(field: VertexField) → Vector4 | 从指定顶点字段读取 Vector4 值 |
readFVector4(field: VertexField) → FVector4 | 从指定顶点字段读取FVector4值 |
readVector3(field: VertexField) → Vector3 | 从指定顶点字段读取 Vector3 值 |
readFVector3(field: VertexField) → FVector3 | 从指定顶点字段读取FVector3值 |
readVector2(field: VertexField) → Vector2 | 从指定顶点字段读取 Vector2 值 |
readFVector2(field: VertexField) → FVector2 | 从指定顶点字段读取FVector2值 |
readDouble(field: VertexField) → number | 从指定顶点字段读取双精度数 |
readFloat(field: VertexField) → number | 从指定顶点字段读取单精度数 |