# operator -(Vector3)

> Negates a vector.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Vector3 operator -(Vector3 a)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The vector to negate.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) |             |

### Remarks

Each component in the result is negated.

### Examples

```csharp
// prints (-1.0f, -2.0f, -3.0f)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(-new Vector3(1.0f, 2.0f, 3.0f));
    }
}
```
