fmod
Returns the floating point remainder of x/y.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
fmod(float, float)
Returns the floating point remainder of x/y.
public static float fmod(float x, float y)
Parameters
Returns
Type | Description |
|---|---|
| float | The remainder of x/y. |
fmod(float2, float2)
Returns the componentwise floating point remainder of x/y.
public static float2 fmod(float2 x, float2 y)
Parameters
Returns
Type | Description |
|---|---|
| float2 | The componentwise remainder of x/y. |
fmod(float3, float3)
Returns the componentwise floating point remainder of x/y.
public static float3 fmod(float3 x, float3 y)
Parameters
Returns
Type | Description |
|---|---|
| float3 | The componentwise remainder of x/y. |
fmod(float4, float4)
Returns the componentwise floating point remainder of x/y.
public static float4 fmod(float4 x, float4 y)
Parameters
Returns
Type | Description |
|---|---|
| float4 | The componentwise remainder of x/y. |
fmod(double, double)
Returns the double precision floating point remainder of x/y.
public static double fmod(double x, double y)
Parameters
Returns
Type | Description |
|---|---|
| double | The remainder of x/y. |
fmod(double2, double2)
Returns the componentwise double precision floating point remainder of x/y.
public static double2 fmod(double2 x, double2 y)
Parameters
Returns
Type | Description |
|---|---|
| double2 | The componentwise remainder of x/y. |
fmod(double3, double3)
Returns the componentwise double precision floating point remainder of x/y.
public static double3 fmod(double3 x, double3 y)
Parameters
Returns
Type | Description |
|---|---|
| double3 | The componentwise remainder of x/y. |
fmod(double4, double4)
Returns the componentwise double precision floating point remainder of x/y.
public static double4 fmod(double4 x, double4 y)
Parameters
Returns
Type | Description |
|---|---|
| double4 | The componentwise remainder of x/y. |