GLKVector4Normalize(_:)
Returns a new vector created by normalizing an input vector to a length of 1.0.
Declaration
func GLKVector4Normalize(_ vector: GLKVector4) -> GLKVector4Parameters
- vector:
A vector.
Return Value
A new vector.
Discussion
The resulting vector points in the same direction as the input vector, but has a length of 1.0.
See Also
Mathematical Operations Performed on Vectors
GLKVector4Negate(_:)GLKVector4AddScalar(_:_:)GLKVector4SubtractScalar(_:_:)GLKVector4MultiplyScalar(_:_:)GLKVector4DivideScalar(_:_:)GLKVector4Add(_:_:)GLKVector4Subtract(_:_:)GLKVector4Multiply(_:_:)GLKVector4Divide(_:_:)GLKVector4DotProduct(_:_:)GLKVector4CrossProduct(_:_:)GLKVector4Lerp(_:_:_:)GLKVector4Project(_:_:)GLKVector4Maximum(_:_:)GLKVector4Minimum(_:_:)