---
title: GLKVector2
framework: GLKit
role: symbol
role_heading: Type Alias
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkvector2
---

# GLKVector2

A representation of a 2-component vector.

## Declaration

```swift
typealias GLKVector2 = _GLKVector2
```

## Overview

Overview The GLKVector2 type defines a 2-component floating-point vector as well as many mathematical operations commonly used to manipulate vectors. Graphics programming uses vectors extensively to represent positions, colors and other data structures. The functions that manipulate GLKVector2 structures treat the inputs as immutable, instead returning a new vector that represent the results of the operation. Fields  |   |   |   |   |   |
