Contents

GLKVector3Normalize(_:)

Returns a new vector created by normalizing the input vector to a length of 1.0.

Declaration

func GLKVector3Normalize(_ vector: GLKVector3) -> GLKVector3

Parameters

  • 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