首页 > 其他 > 详细

Unity中一些小的值得注意的地方

时间:2014-02-20 08:17:19      阅读:280      评论:0      收藏:0      [点我收藏+]

1. Mathf.RoundToInt 函数

If the number ends in .5 so it is halfway between two integers, one of which is even(偶数) and the other odd(奇数), the even number is returned.

注意的是,当数字最后为.5时,它夹在两个整数之间,这两个整数一个是奇数一个是偶数,函数将返回那个偶数。

Unity中一些小的值得注意的地方

原文:http://www.cnblogs.com/sutingwei/p/3556764.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!