Vector方法magnitude
2015-11-16 16:13
393 查看
转载自:
var magnitude : float
Description描述
Returns the length of this vector (Read Only).
返回向量的长度(只读)。
The length of the vector is square root of (x*x+y*y).
向量的长度是(x*x+y*y)的平方根。
If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using sqrMagnitude (computing squared magnitudes is faster).
如果你只需要比较一些向量的长度,你可以比较它们长度的平方,使用sqrMagnitude(计算平方更快)。
var magnitude : float
Description描述
Returns the length of this vector (Read Only).
返回向量的长度(只读)。
The length of the vector is square root of (x*x+y*y).
向量的长度是(x*x+y*y)的平方根。
If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using sqrMagnitude (computing squared magnitudes is faster).
如果你只需要比较一些向量的长度,你可以比较它们长度的平方,使用sqrMagnitude(计算平方更快)。
相关文章推荐
- Kinect结合Unity3D引擎开发体感游戏(一)
- Unity3D中脚本的执行顺序和编译顺序
- Unity3D动态对象优化代码分享
- Unity3D获取当前键盘按键及Unity3D鼠标、键盘的基本操作
- Unity3d获取系统时间
- unity3d发布apk在android虚拟机中运行的详细步骤(unity3d导出android apk)
- Unity3D游戏引擎实现在Android中打开WebView的实例
- unity3d调用手机或电脑摄像头
- Unity3d发布IOS9应用时出现中文乱码的解决方法
- 分享一个开源的网络游戏服务器架构—HouHai
- Unity3D插件详细评测及教学下载
- Unity3D上路_01-2D太空射击游戏
- Unity3D上路_02-第一视角射击游戏
- Unity3D上路_03-塔防游戏
- Unity3D上路_04-基础资源介绍
- Unity3D上路_05-网络相关