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

# GLKVector2AllEqualToVector2(_:_:)

Returns a Boolean value that indicates whether each component of the first vector is equal to the corresponding component of a second vector.

## Declaration

```swift
func GLKVector2AllEqualToVector2(_ vectorLeft: GLKVector2, _ vectorRight: GLKVector2) -> Bool
```

## Parameters

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

## Return Value

Return Value true if all of the vectors’ components are equal , false otherwise.

## Discussion

Discussion The vectors are considered equal when the value for the component at each position in the two source vectors is equal.

## See Also

### Comparison Operations

- [GLKVector2AllEqualToScalar(_:_:)](glkit/glkvector2allequaltoscalar(_:_:).md)
- [GLKVector2AllGreaterThanOrEqualToScalar(_:_:)](glkit/glkvector2allgreaterthanorequaltoscalar(_:_:).md)
- [GLKVector2AllGreaterThanOrEqualToVector2(_:_:)](glkit/glkvector2allgreaterthanorequaltovector2(_:_:).md)
- [GLKVector2AllGreaterThanScalar(_:_:)](glkit/glkvector2allgreaterthanscalar(_:_:).md)
- [GLKVector2AllGreaterThanVector2(_:_:)](glkit/glkvector2allgreaterthanvector2(_:_:).md)
