Vertex
Overview
Vertex is a class in Aspose.3D FOSS for Typescript.
Vertex.constructor creates a vertex using an ArrayBuffer, offset, field declarations, and vertex size.
Methods
| Signature | Description |
|---|---|
constructor(data: ArrayBuffer, offset: number, declaration: VertexField[], vertexSize: number) | Creates a vertex using an ArrayBuffer, offset, field declarations, and vertex size |
compare(other: Vertex) → number | Returns a numeric ordering comparison result between this vertex and another |
compareTo(other: Vertex) → number | Returns a numeric value indicating this vertex’s order relative to another |
readVector4(field: VertexField) → Vector4 | Reads a Vector4 value from the specified vertex field |
readFVector4(field: VertexField) → FVector4 | Reads an FVector4 value from the specified vertex field |
readVector3(field: VertexField) → Vector3 | Reads a Vector3 value from the specified vertex field |
readFVector3(field: VertexField) → FVector3 | Reads an FVector3 value from the specified vertex field |
readVector2(field: VertexField) → Vector2 | Reads a Vector2 value from the specified vertex field |
readFVector2(field: VertexField) → FVector2 | Reads an FVector2 value from the specified vertex field |
readDouble(field: VertexField) → number | Reads a double-precision number from the specified vertex field |
readFloat(field: VertexField) → number | Reads a single-precision number from the specified vertex field |