Version: 5.3
public static float SnapValue (float val, float snap);

파라미터

val The argument to be modified and its value returned.
snap The destination amount.

반환

float The rounded value, if snap is positive, and val otherwise.

설명

Rounds the value val to the closest multiple of snap (snap can only be positive).