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

# FVector4

## Overview

`FVector4` is a struct in Aspose.3D FOSS for .NET.
Inherits from: `IComparable`.

FVector4.FVector4(x:float, y:float, z:float, w:float) creates a 4‑D vector with given x, y, z, w values.

This struct provides 3 methods for working with FVector4 objects in .NET programs.
Available methods include: `CompareTo`, `FVector4`, `ToString`.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `FVector4(x: float, y: float, z: float, w: float)` | Creates a 4‑D vector from a 3‑D vector and a w component |
| `FVector4(xyz: FVector3, w: float)` |  |
| `FVector4(x: float, y: float, z: float)` |  |
| `FVector4(xyz: FVector3)` |  |
| `FVector4(vec: Vector4)` |  |
| `FVector4(vec: Vector3)` |  |
| `FVector4(vec: Vector3, w: float)` |  |
| `ToString()` |  |
| `CompareTo(other: FVector4)` | Compares vectors lexicographically by their components |

## See Also

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