Method fmod
fmod(Single, Single)
Returns the floating point remainder of x/y.
Declaration
public static float fmod(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The dividend in x/y. |
Single | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
Single | The remainder of x/y. |
fmod(float2, float2)
Returns the componentwise floating point remainder of x/y.
Declaration
public static float2 fmod(float2 x, float2 y)
Parameters
Type | Name | Description |
---|---|---|
float2 | x | The dividend in x/y. |
float2 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
float2 | The componentwise remainder of x/y. |
fmod(float3, float3)
Returns the componentwise floating point remainder of x/y.
Declaration
public static float3 fmod(float3 x, float3 y)
Parameters
Type | Name | Description |
---|---|---|
float3 | x | The dividend in x/y. |
float3 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
float3 | The componentwise remainder of x/y. |
fmod(float4, float4)
Returns the componentwise floating point remainder of x/y.
Declaration
public static float4 fmod(float4 x, float4 y)
Parameters
Type | Name | Description |
---|---|---|
float4 | x | The dividend in x/y. |
float4 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
float4 | The componentwise remainder of x/y. |
fmod(Double, Double)
Returns the double precision floating point remainder of x/y.
Declaration
public static double fmod(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
Double | x | The dividend in x/y. |
Double | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
Double | The remainder of x/y. |
fmod(double2, double2)
Returns the componentwise double precision floating point remainder of x/y.
Declaration
public static double2 fmod(double2 x, double2 y)
Parameters
Type | Name | Description |
---|---|---|
double2 | x | The dividend in x/y. |
double2 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
double2 | The componentwise remainder of x/y. |
fmod(double3, double3)
Returns the componentwise double precision floating point remainder of x/y.
Declaration
public static double3 fmod(double3 x, double3 y)
Parameters
Type | Name | Description |
---|---|---|
double3 | x | The dividend in x/y. |
double3 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
double3 | The componentwise remainder of x/y. |
fmod(double4, double4)
Returns the componentwise double precision floating point remainder of x/y.
Declaration
public static double4 fmod(double4 x, double4 y)
Parameters
Type | Name | Description |
---|---|---|
double4 | x | The dividend in x/y. |
double4 | y | The divisor in x/y. |
Returns
Type | Description |
---|---|
double4 | The componentwise remainder of x/y. |