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

# FVector2

## Overview

`FVector2` is a class in Aspose.3D FOSS for Java.
Inherits from: `Struct<FVector2>`, `Serializable`, `Comparable<FVector2>`.

This class provides 17 methods for working with FVector2 objects in Java programs.
Available methods include: `FVector2`, `add`, `clone`, `compareTo`, `copyFrom`, `create`, `equals`, `hashCode`, `mul`, `op_eq`, `op_ne`, `sub`, and 1 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `FVector2()` | Calls FVector2 on this FVector2 instance. |
| `FVector2(x: float, y: float)` | Calls FVector2(x, y) on this FVector2 instance. |
| `FVector2(vec: FVector3)` | Calls FVector2(vec) on this FVector2 instance. |
| `FVector2(vec: Vector2)` | Calls FVector2(vec) on this FVector2 instance. |
| `create(v: FVector2)` → `Vector2` | Calls create(v) on this FVector2 instance. |
| `compareTo(other: FVector2)` → `int` | Calls compareTo(other) on this FVector2 instance. |
| `equals(rhs: FVector2)` → `boolean` | Calls equals(rhs) on this FVector2 instance. |
| `equals(obj: Object)` → `boolean` | Calls equals(obj) on this FVector2 instance. |
| `hashCode()` → `int` | Calls hashCode on this FVector2 instance. |
| `toString()` → `String` | Calls toString on this FVector2 instance. |
| `add(a: FVector2, b: FVector2)` → `FVector2` | Calls add(a, b) on this FVector2 instance. |
| `sub(a: FVector2, b: FVector2)` → `FVector2` | Calls sub(a, b) on this FVector2 instance. |
| `mul(a: FVector2, b: float)` → `FVector2` | Calls mul(a, b) on this FVector2 instance. |
| `op_eq(a: FVector2, b: FVector2)` → `boolean` | Calls op_eq(a, b) on this FVector2 instance. |
| `op_ne(a: FVector2, b: FVector2)` → `boolean` | Calls op_ne(a, b) on this FVector2 instance. |
| `clone()` → `FVector2` | Calls clone on this FVector2 instance. |
| `copyFrom(src: FVector2)` | Calls copyFrom(src) on this FVector2 instance. |

## See Also
- [Aspose.3D for Java — Enterprise API Reference](https://reference.aspose.com/3d/java/com.aspose.threed/fvector2/)