GLKVector2AddScalar(_:_:)
Returns a new vector created by adding a scalar value to each component of a vector.
Declaration
func GLKVector2AddScalar(_ vector: GLKVector2, _ value: Float) -> GLKVector2Parameters
- vector:
A vector.
- value:
A scalar value.
Return Value
A new vector.
See Also
Mathematical Operations Performed on Vectors
GLKVector2Negate(_:)GLKVector2Normalize(_:)GLKVector2SubtractScalar(_:_:)GLKVector2MultiplyScalar(_:_:)GLKVector2DivideScalar(_:_:)GLKVector2Add(_:_:)GLKVector2Subtract(_:_:)GLKVector2Multiply(_:_:)GLKVector2Divide(_:_:)GLKVector2DotProduct(_:_:)GLKVector2Lerp(_:_:_:)GLKVector2Project(_:_:)GLKVector2Maximum(_:_:)GLKVector2Minimum(_:_:)