---
title: "GLKVector4Divide(_:_:)"
framework: GLKit
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: "glkit/glkvector4divide(_:_:)"
---

# GLKVector4Divide(_:_:)

Returns a new vector created by dividing one vector by another.

## Declaration

```swift
func GLKVector4Divide(_ vectorLeft: GLKVector4, _ vectorRight: GLKVector4) -> GLKVector4
```

## Parameters

- `vectorLeft`: The first vector.
- `vectorRight`: The dividend.

## Return Value

Return Value A new vector whose components are each calculated by dividing the component found in same position of the first vector by the component found in the same position of the second vector.

## See Also

### Mathematical Operations Performed on Vectors

- [GLKVector4Negate(_:)](glkit/glkvector4negate(_:).md)
- [GLKVector4Normalize(_:)](glkit/glkvector4normalize(_:).md)
- [GLKVector4AddScalar(_:_:)](glkit/glkvector4addscalar(_:_:).md)
- [GLKVector4SubtractScalar(_:_:)](glkit/glkvector4subtractscalar(_:_:).md)
- [GLKVector4MultiplyScalar(_:_:)](glkit/glkvector4multiplyscalar(_:_:).md)
- [GLKVector4DivideScalar(_:_:)](glkit/glkvector4dividescalar(_:_:).md)
- [GLKVector4Add(_:_:)](glkit/glkvector4add(_:_:).md)
- [GLKVector4Subtract(_:_:)](glkit/glkvector4subtract(_:_:).md)
- [GLKVector4Multiply(_:_:)](glkit/glkvector4multiply(_:_:).md)
- [GLKVector4DotProduct(_:_:)](glkit/glkvector4dotproduct(_:_:).md)
- [GLKVector4CrossProduct(_:_:)](glkit/glkvector4crossproduct(_:_:).md)
- [GLKVector4Lerp(_:_:_:)](glkit/glkvector4lerp(_:_:_:).md)
- [GLKVector4Project(_:_:)](glkit/glkvector4project(_:_:).md)
- [GLKVector4Maximum(_:_:)](glkit/glkvector4maximum(_:_:).md)
- [GLKVector4Minimum(_:_:)](glkit/glkvector4minimum(_:_:).md)
