---
title: "-=(_:_:)"
framework: spatial
role: symbol
role_heading: Operator
path: "spatial/vector3dfloat/-=(_:_:)"
---

# -=(_:_:)

Calculates the vector that’s the element-wise difference of a vector and a vector and stores the result in the left-hand-side variable.

## Declaration

```swift
static func -= (lhs: inout Vector3DFloat, rhs: Vector3DFloat)
```

## Parameters

- `lhs`: The first value.
- `rhs`: The second value.
