GLKVector4CrossProduct(_:_:)
Returns the cross product of two vectors.
Declaration
func GLKVector4CrossProduct(_ vectorLeft: GLKVector4, _ vectorRight: GLKVector4) -> GLKVector4Parameters
- 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
GLKVector4Negate(_:)GLKVector4Normalize(_:)GLKVector4AddScalar(_:_:)GLKVector4SubtractScalar(_:_:)GLKVector4MultiplyScalar(_:_:)GLKVector4DivideScalar(_:_:)GLKVector4Add(_:_:)GLKVector4Subtract(_:_:)GLKVector4Multiply(_:_:)GLKVector4Divide(_:_:)GLKVector4DotProduct(_:_:)GLKVector4Lerp(_:_:_:)GLKVector4Project(_:_:)GLKVector4Maximum(_:_:)GLKVector4Minimum(_:_:)