Contents

GLKVector4CrossProduct(_:_:)

Returns the cross product of two vectors.

Declaration

func GLKVector4CrossProduct(_ vectorLeft: GLKVector4, _ vectorRight: GLKVector4) -> GLKVector4

Parameters

  • vectorLeft:

    The first vector.

  • vectorRight:

    The second vector.

Return Value

A new vector.

Discussion

The calculation is performed by taking the [x,y,z] components of the two source vectors and computing the cross product of those two vectors. The w component of the result vector is 0.0.

See Also

Mathematical Operations Performed on Vectors