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.

This class declares 11 methods for Vertex objects in TypeScript programs. Available methods include: compare, compareTo, constructor, readDouble, readFVector2, readFVector3, readFVector4, readFloat, readVector2, readVector3, readVector4. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.

Methods

SignatureDescription
constructor(data: ArrayBuffer, offset: number, declaration: VertexField[], vertexSize: number)Creates a vertex using an ArrayBuffer, offset, field declarations, and vertex size
compare(other: Vertex)numberReturns a numeric ordering comparison result between this vertex and another
compareTo(other: Vertex)numberReturns a numeric value indicating this vertex’s order relative to another
readVector4(field: VertexField)Vector4Reads a Vector4 value from the specified vertex field
readFVector4(field: VertexField)FVector4Reads an FVector4 value from the specified vertex field
readVector3(field: VertexField)Vector3Reads a Vector3 value from the specified vertex field
readFVector3(field: VertexField)FVector3Reads an FVector3 value from the specified vertex field
readVector2(field: VertexField)Vector2Reads a Vector2 value from the specified vertex field
readFVector2(field: VertexField)FVector2Reads an FVector2 value from the specified vertex field
readDouble(field: VertexField)numberReads a double-precision number from the specified vertex field
readFloat(field: VertexField)numberReads a single-precision number from the specified vertex field

See Also

 English