GLKVector2
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.
Topics
Creating Vectors
Retrieving Information About a Vector
Mathematical Operations Performed on Vectors
GLKVector2Negate(_:)GLKVector2Normalize(_:)GLKVector2AddScalar(_:_:)GLKVector2SubtractScalar(_:_:)GLKVector2MultiplyScalar(_:_:)GLKVector2DivideScalar(_:_:)GLKVector2Add(_:_:)GLKVector2Subtract(_:_:)GLKVector2Multiply(_:_:)GLKVector2Divide(_:_:)GLKVector2DotProduct(_:_:)GLKVector2Lerp(_:_:_:)GLKVector2Project(_:_:)GLKVector2Maximum(_:_:)GLKVector2Minimum(_:_:)
Comparison Operations
GLKVector2AllEqualToScalar(_:_:)GLKVector2AllEqualToVector2(_:_:)GLKVector2AllGreaterThanOrEqualToScalar(_:_:)GLKVector2AllGreaterThanOrEqualToVector2(_:_:)GLKVector2AllGreaterThanScalar(_:_:)GLKVector2AllGreaterThanVector2(_:_:)