sincos
Description
Sine and cosine. Calculate both the sine and cosine of x.
Signature
void sincos<T>( T x, out T s, out T c) where T : __BuiltinFloatingPointType; void sincos<T, N:int>( vector<T, N> x, out vector<T, N> s, out vector<T, N> c) where T : __BuiltinFloatingPointType; void sincos<T, N:int, M:int, L1:int, L2:int>( matrix<T, N, M> x, out matrix<T, N, M> s, out matrix<T, N, M> c) where T : __BuiltinFloatingPointType;
Generic Parameters
T: __BuiltinFloatingPointType
N : int
M : int
L1 : int
L2 : int
Parameters
x : T
The angle in radians.
s : T
[out] The sine of x.
c : T
[out] The cosine of x.
x : vector<T, N>
The angle in radians.
s : vector<T, N>
[out] The sine of x.
c : vector<T, N>
[out] The cosine of x.
x : matrix<T, N, M>
The angle in radians.
s : matrix<T, N, M>
[out] The sine of x.
c : matrix<T, N, M>
[out] The cosine of x.
Return value
void
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.