sincos
Returns the sine and cosine of the input float value x through the out parameters s and c.
Read time 3 minutesLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
sincos(float, float, float)
Returns the sine and cosine of the input float value x through the out parameters s and c.
public static void sincos(float x, out float s, out float c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(float2, float2, float2)
Returns the componentwise sine and cosine of the input float2 vector x through the out parameters s and c.
public static void sincos(float2 x, out float2 s, out float2 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(float3, float3, float3)
Returns the componentwise sine and cosine of the input float3 vector x through the out parameters s and c.
public static void sincos(float3 x, out float3 s, out float3 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(float4, float4, float4)
Returns the componentwise sine and cosine of the input float4 vector x through the out parameters s and c.
public static void sincos(float4 x, out float4 s, out float4 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(double, double, double)
Returns the sine and cosine of the input double value x through the out parameters s and c.
public static void sincos(double x, out double s, out double c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(double2, double2, double2)
Returns the componentwise sine and cosine of the input double2 vector x through the out parameters s and c.
public static void sincos(double2 x, out double2 s, out double2 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(double3, double3, double3)
Returns the componentwise sine and cosine of the input double3 vector x through the out parameters s and c.
public static void sincos(double3 x, out double3 s, out double3 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.
sincos(double4, double4, double4)
Returns the componentwise sine and cosine of the input double4 vector x through the out parameters s and c.
public static void sincos(double4 x, out double4 s, out double4 c)
Parameters
Remarks
When Burst compiled, his method is faster than calling sin() and cos() separately.