Contents

sincospi(_:)

Returns the sine and cosine of each element in a vector multiplied by pi.

Declaration

func sincospi(_ x: simd_float2) -> (sin: simd_float2, cos: simd_float2)

Parameters

  • x:

    The source vector.

Return Value

A two-element tuple. The first element contains the sines, and the second element contains the cosines.

See Also

Trigonometric Functions