GLKVector4
Overview
The GLKVector4 type defines a 4-component floating-point vector as well as many mathematical operations commonly used to manipulate vectors. Graphics programming uses vectors extensively to represent positions, normals, colors and other data structures.
The functions that manipulate GLKVector4 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
GLKVector4Negate(_:)GLKVector4Normalize(_:)GLKVector4AddScalar(_:_:)GLKVector4SubtractScalar(_:_:)GLKVector4MultiplyScalar(_:_:)GLKVector4DivideScalar(_:_:)GLKVector4Add(_:_:)GLKVector4Subtract(_:_:)GLKVector4Multiply(_:_:)GLKVector4Divide(_:_:)GLKVector4DotProduct(_:_:)GLKVector4CrossProduct(_:_:)GLKVector4Lerp(_:_:_:)GLKVector4Project(_:_:)GLKVector4Maximum(_:_:)GLKVector4Minimum(_:_:)
Comparison Operations
GLKVector4AllEqualToScalar(_:_:)GLKVector4AllEqualToVector4(_:_:)GLKVector4AllGreaterThanOrEqualToScalar(_:_:)GLKVector4AllGreaterThanOrEqualToVector4(_:_:)GLKVector4AllGreaterThanScalar(_:_:)GLKVector4AllGreaterThanVector4(_:_:)