# Vector4

The `Vector4` class represents a four-dimensional vector.

## Definition

*Namespace:* Dynamsoft.Core


```csharp
public class Vector4
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`Set`](#set) | Sets the components value of a four-dimensional vector. |

### Set

Sets the components value of a four-dimensional vector.

```csharp
void Set(int v1, int v2, int v3, int v4)
```

**Parameters**

`[in] v1` The first component value of the four-dimensional vector.

`[in] v2` The second component value of the four-dimensional vector.

`[in] v3` The third component value of the four-dimensional vector.

`[in] v4` The fourth component value of the four-dimensional vector.

