MathUtilEx.

RoundToInt(float) Method

Summary

Gets the integer value nearest to the amount.
Namespace
StrideToolkit.Mathematics
Containing Type
MathUtilEx

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int RoundToInt(this float value)

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
value float The value.

Return Value

Type Description
int The integer value nearest to the amount.