GLKVector3Normalize(_:)
Returns a new vector created by normalizing the input vector to a length of 1.0.
Declaration
func GLKVector3Normalize(_ vector: GLKVector3) -> GLKVector3Parameters
- 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
GLKVector3Negate(_:)GLKVector3AddScalar(_:_:)GLKVector3SubtractScalar(_:_:)GLKVector3MultiplyScalar(_:_:)GLKVector3DivideScalar(_:_:)GLKVector3Add(_:_:)GLKVector3Subtract(_:_:)GLKVector3Multiply(_:_:)GLKVector3Divide(_:_:)GLKVector3DotProduct(_:_:)GLKVector3CrossProduct(_:_:)GLKVector3Lerp(_:_:_:)GLKVector3Project(_:_:)GLKVector3Maximum(_:_:)GLKVector3Minimum(_:_:)