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

# -=(_:_:)

Subtracts a vector from a vector and stores the difference in the left-hand-side variable.

## Declaration

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

## Parameters

- `lhs`: The left-hand-side value.
- `rhs`: The right-hand-side value.

## See Also

### Applying arithmetic operations

- [*(_:_:)](spatial/vector3d/*(_:_:)-dcwn.md)
- [*(_:_:)](spatial/vector3d/*(_:_:)-64lzt.md)
- [*(_:_:)](spatial/vector3d/*(_:_:)-6rxsr.md)
- [*(_:_:)](spatial/vector3d/*(_:_:)-3dpli.md)
- [*(_:_:)](spatial/vector3d/*(_:_:)-8y7xq.md)
- [+(_:_:)](spatial/vector3d/+(_:_:)-7gbcj.md)
- [+(_:_:)](spatial/vector3d/+(_:_:)-9xfxv.md)
- [+(_:_:)](spatial/vector3d/+(_:_:)-1xufx.md)
- [+(_:_:)](spatial/vector3d/+(_:_:)-1bq1m.md)
- [+(_:_:)](spatial/vector3d/+(_:_:)-4rsou.md)
- [-(_:)](spatial/vector3d/-(_:).md)
- [-(_:_:)](spatial/vector3d/-(_:_:)-6zam.md)
- [-(_:_:)](spatial/vector3d/-(_:_:)-6lui1.md)
- [-(_:_:)](spatial/vector3d/-(_:_:)-3qpww.md)
- [-(_:_:)](spatial/vector3d/-(_:_:)-1nz82.md)
