---
Product: Aspose.3D
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/typescript/Vertex
---

# 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 provides 11 methods for working with Vertex objects in Typescript programs.
Available methods include: `compare`, `compareTo`, `constructor`, `readDouble`, `readFVector2`, `readFVector3`, `readFVector4`, `readFloat`, `readVector2`, `readVector3`, `readVector4`.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.

## Description

`Vertex` is a class in the Aspose.3D FOSS library for TypeScript that exposes 10 methods and 0 properties for programmatic use.

Core capabilities include: Creates a vertex using an arraybuffer, offset, field declarations, and vertex size. These operations enable developers to integrate vertex functionality directly into TypeScript applications.

Instances are created through a single constructor that initializes the object with default values.

## 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 |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)